Skip to content

tsconfig.json configuration not respected #1377

@genadis

Description

@genadis

What happened?

I have typescript base pulumi project that has tsonfig.json with compiler options that are not respected by the pulumi action.

Example

In my typescript based pulumi project I have

import * as PACKAGE from '../../../x/package.json';

and tsconfig has "resolveJsonModule": true

no errors/warning reported by vscode linter.

when pulumi action run error is thrown:
error TS2732: Cannot find module '../../../x/package.json'. Consider using '--resolveJsonModule' to import module with '.json' extension.

Previously we used require with no issue:
const PACKAGE_VERSION = require('../../../x/package.json').version;

Output of pulumi about

ersion 3.181.0
Go Version go1.24.4
Go Compiler gc

Plugins
KIND NAME VERSION
language nodejs 3.181.0-dev.0

Additional context

No response

Contributing

Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugSome behavior is incorrect or out of speclanguage/javascriptneeds-reproNeeds repro steps before it can be triaged or fixed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions