We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
exports, package.json, tsconfig, extends, base config
While tsc works and resolves the config files from the exports fields of the packages, ts-node fails.
ts-node finds and reads extended configs from an external package when they're defined in the packageJson.exports field.
packageJson.exports
ts-node fails to parse the config and exits with an error.
Repro: TypeStrong/ts-node-repros#39
This setup includes two packages @tsnode-exports/main a regular package and a @tsnode-exports/ts-config holding just the base tsconfig file.
@tsnode-exports/main
@tsnode-exports/ts-config
in package ts-config the tsconfig file is in some internal folder and is exposed via the package.json field: exports
ts-config
package.json
exports
In package main we have a tsconfig with an extends that points to that tsconfig in the ts-config package.
main
extends
v20.11.0
npm ci
tsc
npm run tsc
ts-node
npm run ts-node
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Search Terms
exports, package.json, tsconfig, extends, base config
Description
While tsc works and resolves the config files from the exports fields of the packages, ts-node fails.
Expected Behavior
ts-node finds and reads extended configs from an external package when they're defined in the
packageJson.exports
field.Actual Behavior
ts-node fails to parse the config and exits with an error.
Minimal reproduction
Repro: TypeStrong/ts-node-repros#39
This setup includes two packages
@tsnode-exports/main
a regular package and a@tsnode-exports/ts-config
holding just the base tsconfig file.in package
ts-config
the tsconfig file is in some internal folder and is exposed via thepackage.json
field:exports
In package
main
we have a tsconfig with anextends
that points to that tsconfig in thets-config
package.Steps to reproduce the problem
v20.11.0
)npm ci
tsc
builds successfully by runningnpm run tsc
ts-node
fails to build by runningnpm run ts-node
Specifications
The text was updated successfully, but these errors were encountered: