-
Notifications
You must be signed in to change notification settings - Fork 81
Description
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).