Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

esbuild-plugin-tsc

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

esbuild-plugin-tsc - npm Package Compare versions

Comparing version 0.3.1 to 0.4.0

6

package.json
{
"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 @@ });

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc