@@ -1,1 +0,1 @@ | ||
| {"version":3,"file":"which-tsc.d.ts","sourceRoot":"","sources":["../../src/which-tsc.ts"],"names":[],"mappings":";AA2BA,wBAAkE","sourcesContent":["// find the location of the tsc binary\n// This is necessary because pnpm install trees don't expose binaries\n// of meta-deps, and it's nicer to not require that the tshy user has\n// a dep on typescript directly if they don't need it otherwise.\n// However, if they DO have a direct dep on typescript, then load the\n// tsc from their local node_modules/.bin/tsc location.\nimport { resolveImport } from 'resolve-import'\nimport { fileURLToPath } from 'url'\nimport config from './config.js'\n\nconst provider = {\n tsgo: '@typescript/native-preview',\n tsc: 'typescript',\n} as const\n\n// use theirs if possible, otherwise use tshy's\nconst resolve = async (pkg: (typeof provider)[keyof typeof provider]) =>\n await resolveImport(pkg + '/package.json', process.cwd() + '/x').catch(\n () => resolveImport(pkg + '/package.json', import.meta.url),\n )\n\nconst { compiler = 'tsc' } = config\nconst provPkg = provider[compiler]\n\nconst pjToCompiler = (pj: string) =>\n pj.slice(0, -1 * (provPkg + '/package.json').length) + `.bin/${compiler}`\n\nexport default pjToCompiler(fileURLToPath(await resolve(provPkg)))\n"]} | ||
| {"version":3,"file":"which-tsc.d.ts","sourceRoot":"","sources":["../../src/which-tsc.ts"],"names":[],"mappings":";AAgCA,wBAAkE","sourcesContent":["// find the location of the tsc binary\n// This is necessary because pnpm install trees don't expose binaries\n// of meta-deps, and it's nicer to not require that the tshy user has\n// a dep on typescript directly if they don't need it otherwise.\n// However, if they DO have a direct dep on typescript, then load the\n// tsc from their local node_modules/.bin/tsc location.\nimport { resolveImport } from 'resolve-import'\nimport { fileURLToPath } from 'url'\nimport config from './config.js'\n\nconst provider = {\n tsgo: '@typescript/native-preview',\n tsc: 'typescript',\n} as const\n\nconst pjToCompilerPath = {\n tsgo: 'bin/tsgo.js',\n tsc: 'bin/tsc',\n} as const\n\n// use theirs if possible, otherwise use tshy's\nconst resolve = async (pkg: (typeof provider)[keyof typeof provider]) =>\n await resolveImport(pkg + '/package.json', process.cwd() + '/x').catch(\n () => resolveImport(pkg + '/package.json', import.meta.url),\n )\n\nconst { compiler = 'tsc' } = config\nconst provPkg = provider[compiler]\n\nconst pjToCompiler = (pj: string) =>\n pj.slice(0, -1 * 'package.json'.length) + pjToCompilerPath[compiler]\n\nexport default pjToCompiler(fileURLToPath(await resolve(provPkg)))\n"]} |
@@ -14,2 +14,6 @@ // find the location of the tsc binary | ||
| }; | ||
| const pjToCompilerPath = { | ||
| tsgo: 'bin/tsgo.js', | ||
| tsc: 'bin/tsc', | ||
| }; | ||
| // use theirs if possible, otherwise use tshy's | ||
@@ -19,4 +23,4 @@ const resolve = async (pkg) => await resolveImport(pkg + '/package.json', process.cwd() + '/x').catch(() => resolveImport(pkg + '/package.json', import.meta.url)); | ||
| const provPkg = provider[compiler]; | ||
| const pjToCompiler = (pj) => pj.slice(0, -1 * (provPkg + '/package.json').length) + `.bin/${compiler}`; | ||
| const pjToCompiler = (pj) => pj.slice(0, -1 * 'package.json'.length) + pjToCompilerPath[compiler]; | ||
| export default pjToCompiler(fileURLToPath(await resolve(provPkg))); | ||
| //# sourceMappingURL=which-tsc.js.map |
@@ -1,1 +0,1 @@ | ||
| {"version":3,"file":"which-tsc.js","sourceRoot":"","sources":["../../src/which-tsc.ts"],"names":[],"mappings":"AAAA,sCAAsC;AACtC,qEAAqE;AACrE,qEAAqE;AACrE,gEAAgE;AAChE,qEAAqE;AACrE,uDAAuD;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAA;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,KAAK,CAAA;AACnC,OAAO,MAAM,MAAM,aAAa,CAAA;AAEhC,MAAM,QAAQ,GAAG;IACf,IAAI,EAAE,4BAA4B;IAClC,GAAG,EAAE,YAAY;CACT,CAAA;AAEV,+CAA+C;AAC/C,MAAM,OAAO,GAAG,KAAK,EAAE,GAA6C,EAAE,EAAE,CACtE,MAAM,aAAa,CAAC,GAAG,GAAG,eAAe,EAAE,OAAO,CAAC,GAAG,EAAE,GAAG,IAAI,CAAC,CAAC,KAAK,CACpE,GAAG,EAAE,CAAC,aAAa,CAAC,GAAG,GAAG,eAAe,EAAE,OAAO,IAAI,CAAC,GAAG,CAAC,CAC5D,CAAA;AAEH,MAAM,EAAE,QAAQ,GAAG,KAAK,EAAE,GAAG,MAAM,CAAA;AACnC,MAAM,OAAO,GAAG,QAAQ,CAAC,QAAQ,CAAC,CAAA;AAElC,MAAM,YAAY,GAAG,CAAC,EAAU,EAAE,EAAE,CAClC,EAAE,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,CAAC,OAAO,GAAG,eAAe,CAAC,CAAC,MAAM,CAAC,GAAG,QAAQ,QAAQ,EAAE,CAAA;AAE3E,eAAe,YAAY,CAAC,aAAa,CAAC,MAAM,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,CAAA","sourcesContent":["// find the location of the tsc binary\n// This is necessary because pnpm install trees don't expose binaries\n// of meta-deps, and it's nicer to not require that the tshy user has\n// a dep on typescript directly if they don't need it otherwise.\n// However, if they DO have a direct dep on typescript, then load the\n// tsc from their local node_modules/.bin/tsc location.\nimport { resolveImport } from 'resolve-import'\nimport { fileURLToPath } from 'url'\nimport config from './config.js'\n\nconst provider = {\n tsgo: '@typescript/native-preview',\n tsc: 'typescript',\n} as const\n\n// use theirs if possible, otherwise use tshy's\nconst resolve = async (pkg: (typeof provider)[keyof typeof provider]) =>\n await resolveImport(pkg + '/package.json', process.cwd() + '/x').catch(\n () => resolveImport(pkg + '/package.json', import.meta.url),\n )\n\nconst { compiler = 'tsc' } = config\nconst provPkg = provider[compiler]\n\nconst pjToCompiler = (pj: string) =>\n pj.slice(0, -1 * (provPkg + '/package.json').length) + `.bin/${compiler}`\n\nexport default pjToCompiler(fileURLToPath(await resolve(provPkg)))\n"]} | ||
| {"version":3,"file":"which-tsc.js","sourceRoot":"","sources":["../../src/which-tsc.ts"],"names":[],"mappings":"AAAA,sCAAsC;AACtC,qEAAqE;AACrE,qEAAqE;AACrE,gEAAgE;AAChE,qEAAqE;AACrE,uDAAuD;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAA;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,KAAK,CAAA;AACnC,OAAO,MAAM,MAAM,aAAa,CAAA;AAEhC,MAAM,QAAQ,GAAG;IACf,IAAI,EAAE,4BAA4B;IAClC,GAAG,EAAE,YAAY;CACT,CAAA;AAEV,MAAM,gBAAgB,GAAG;IACvB,IAAI,EAAE,aAAa;IACnB,GAAG,EAAE,SAAS;CACN,CAAA;AAEV,+CAA+C;AAC/C,MAAM,OAAO,GAAG,KAAK,EAAE,GAA6C,EAAE,EAAE,CACtE,MAAM,aAAa,CAAC,GAAG,GAAG,eAAe,EAAE,OAAO,CAAC,GAAG,EAAE,GAAG,IAAI,CAAC,CAAC,KAAK,CACpE,GAAG,EAAE,CAAC,aAAa,CAAC,GAAG,GAAG,eAAe,EAAE,OAAO,IAAI,CAAC,GAAG,CAAC,CAC5D,CAAA;AAEH,MAAM,EAAE,QAAQ,GAAG,KAAK,EAAE,GAAG,MAAM,CAAA;AACnC,MAAM,OAAO,GAAG,QAAQ,CAAC,QAAQ,CAAC,CAAA;AAElC,MAAM,YAAY,GAAG,CAAC,EAAU,EAAE,EAAE,CAClC,EAAE,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,cAAc,CAAC,MAAM,CAAC,GAAG,gBAAgB,CAAC,QAAQ,CAAC,CAAA;AAEtE,eAAe,YAAY,CAAC,aAAa,CAAC,MAAM,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,CAAA","sourcesContent":["// find the location of the tsc binary\n// This is necessary because pnpm install trees don't expose binaries\n// of meta-deps, and it's nicer to not require that the tshy user has\n// a dep on typescript directly if they don't need it otherwise.\n// However, if they DO have a direct dep on typescript, then load the\n// tsc from their local node_modules/.bin/tsc location.\nimport { resolveImport } from 'resolve-import'\nimport { fileURLToPath } from 'url'\nimport config from './config.js'\n\nconst provider = {\n tsgo: '@typescript/native-preview',\n tsc: 'typescript',\n} as const\n\nconst pjToCompilerPath = {\n tsgo: 'bin/tsgo.js',\n tsc: 'bin/tsc',\n} as const\n\n// use theirs if possible, otherwise use tshy's\nconst resolve = async (pkg: (typeof provider)[keyof typeof provider]) =>\n await resolveImport(pkg + '/package.json', process.cwd() + '/x').catch(\n () => resolveImport(pkg + '/package.json', import.meta.url),\n )\n\nconst { compiler = 'tsc' } = config\nconst provPkg = provider[compiler]\n\nconst pjToCompiler = (pj: string) =>\n pj.slice(0, -1 * 'package.json'.length) + pjToCompilerPath[compiler]\n\nexport default pjToCompiler(fileURLToPath(await resolve(provPkg)))\n"]} |
+1
-1
| { | ||
| "name": "tshy", | ||
| "version": "3.3.0", | ||
| "version": "3.3.1", | ||
| "description": "TypeScript HYbridizer - Hybrid (CommonJS/ESM) TypeScript node package builder", | ||
@@ -5,0 +5,0 @@ "author": "Isaac Z. Schlueter <i@izs.me> (https://izs.me)", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
1816045
0.02%2646
0.15%