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
Given this tsconfig.json
{ "compilerOptions": { "outDir": "./dist", }, "include": ["src/**/*.ts"] }
When running npx sucrase -p ., it incorrectly outputs to dist/src instead of treating src as a base directory.
npx sucrase -p .
dist/src
src
# ❌ it should not be this /path/src/main.ts -> /path/dist/src/main.js # ✅ it should be this /path/src/main.ts -> /path/dist/main.js
Adding the rootDir configuration setting does not affect this
rootDir
// No change { "compilerOptions": { "rootDir": "./src", "outDir": "./dist", }, "include": ["src/**/*.ts"] }
And if I exclude "include", sucrase doesn't output anything.
{ "compilerOptions": { "rootDir": "./src", // with or without this, doesn't matter "outDir": "./dist", }, //"include": ["src/**/*.ts"] }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Given this tsconfig.json
When running
npx sucrase -p .
, it incorrectly outputs todist/src
instead of treatingsrc
as a base directory.Adding the
rootDir
configuration setting does not affect thisAnd if I exclude "include", sucrase doesn't output anything.
The text was updated successfully, but these errors were encountered: