Comparing version 0.0.5 to 0.0.6
@@ -1,3 +0,3 @@ | ||
export declare const packageJsonPromise: Promise<{ | ||
export declare const getPackageJson: () => Promise<{ | ||
type?: string | undefined; | ||
}>; |
@@ -7,10 +7,7 @@ 'use strict'; | ||
const packageJsonPromise = (async () => { | ||
const getPackageJson = async () => { | ||
const packageJsonString = await fs.promises.readFile("./package.json", { encoding: "utf-8" }); | ||
return JSON.parse(packageJsonString); | ||
})().catch((err) => { | ||
console.error(err); | ||
process.exit(1); | ||
}); | ||
}; | ||
exports.packageJsonPromise = packageJsonPromise; | ||
exports.getPackageJson = getPackageJson; |
@@ -63,3 +63,3 @@ 'use strict'; | ||
}; | ||
const isTypeModule = (await packageJson.packageJsonPromise).type === "module"; | ||
const isTypeModule = (await packageJson.getPackageJson()).type === "module"; | ||
const cjsEntryFileNames = isTypeModule ? "[name].cjs" : void 0; | ||
@@ -66,0 +66,0 @@ const esmEntryFileNames = isTypeModule ? void 0 : "[name].mjs"; |
{ | ||
"name": "bob-ts", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"homepage": "https://github.com/PabloSzx/bob-esbuild", | ||
@@ -5,0 +5,0 @@ "bugs": "https://github.com/PabloSzx/bob-esbuild/issues", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
21680
27
601
0