esbuild-plugin-tsc
Advanced tools
Comparing version 0.3.1 to 0.4.0
{ | ||
"name": "esbuild-plugin-tsc", | ||
"version": "0.3.1", | ||
"version": "0.4.0", | ||
"description": "An esbuild plugin which uses tsc to compile typescript files.", | ||
@@ -35,7 +35,7 @@ "main": "src/index.js", | ||
"prettier": "^2.7.1", | ||
"typescript": "^4.7.4" | ||
"typescript": "^5.0.0" | ||
}, | ||
"peerDependencies": { | ||
"typescript": "^4.0.0" | ||
"typescript": "^4.0.0 || ^5.0.0" | ||
} | ||
} |
@@ -36,3 +36,3 @@ # esbuild-plugin-tsc | ||
```diff | ||
+import { esbuildPluginTsc } from 'esbuild-plugin-tsc'; | ||
+import esbuildPluginTsc from 'esbuild-plugin-tsc'; | ||
... | ||
@@ -39,0 +39,0 @@ esbuild.build({ |
@@ -27,6 +27,6 @@ const fs = require('fs').promises; | ||
parsedTsConfig = parseTsConfig(tsconfigPath, process.cwd()); | ||
if (parsedTsConfig.sourcemap) { | ||
parsedTsConfig.sourcemap = false; | ||
parsedTsConfig.inlineSources = true; | ||
parsedTsConfig.inlineSourceMap = true; | ||
if (parsedTsConfig.options.sourceMap) { | ||
parsedTsConfig.options.sourceMap = false; | ||
parsedTsConfig.options.inlineSources = true; | ||
parsedTsConfig.options.inlineSourceMap = true; | ||
} | ||
@@ -55,3 +55,6 @@ } | ||
const program = typescript.transpileModule(ts, { compilerOptions: parsedTsConfig.options }); | ||
const program = typescript.transpileModule(ts, { | ||
compilerOptions: parsedTsConfig.options, | ||
fileName: path.basename(args.path), | ||
}); | ||
return { contents: program.outputText }; | ||
@@ -58,0 +61,0 @@ }); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
19301
480