@definitelytyped/dts-critic
Advanced tools
Comparing version 0.0.109 to 0.0.110-next.0
@@ -309,3 +309,6 @@ "use strict"; | ||
const npmPack = cp.execFileSync("npm", ["pack", fullName, "--json", "--silent"], cpOpts).trim(); | ||
const tarballName = npmPack.endsWith(".tgz") ? npmPack : JSON.parse(npmPack)[0].filename; | ||
// https://github.com/npm/cli/issues/3405 | ||
const tarballName = (npmPack.endsWith(".tgz") ? npmPack : JSON.parse(npmPack)[0].filename) | ||
.replace(/^@/, "") | ||
.replace(/\//, "-"); | ||
const outPath = path.join(outDir, name); | ||
@@ -312,0 +315,0 @@ initDir(outPath); |
@@ -318,3 +318,6 @@ import yargs = require("yargs"); | ||
const npmPack = cp.execFileSync("npm", ["pack", fullName, "--json", "--silent"], cpOpts).trim(); | ||
const tarballName = npmPack.endsWith(".tgz") ? npmPack : (JSON.parse(npmPack)[0].filename as string); | ||
// https://github.com/npm/cli/issues/3405 | ||
const tarballName = (npmPack.endsWith(".tgz") ? npmPack : (JSON.parse(npmPack)[0].filename as string)) | ||
.replace(/^@/, "") | ||
.replace(/\//, "-"); | ||
const outPath = path.join(outDir, name); | ||
@@ -321,0 +324,0 @@ initDir(outPath); |
{ | ||
"name": "@definitelytyped/dts-critic", | ||
"version": "0.0.109", | ||
"version": "0.0.110-next.0", | ||
"author": "Nathan Shively-Sanders", | ||
@@ -54,3 +54,3 @@ "description": "Checks a new .d.ts against the Javascript source and tells you what problems it has", | ||
}, | ||
"gitHead": "8b850e67a33067cca8f7b0f3912bb3a19fd022ea" | ||
"gitHead": "49b44b4c275c5dae9e2782c64b4eac462f33fd76" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
194062
3319