@ignsg/vite-build-tools
Advanced tools
Comparing version 0.1.2 to 0.1.3
{ | ||
"name": "@ignsg/vite-build-tools", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"type": "module", | ||
@@ -9,3 +9,4 @@ "author": { | ||
"repository": { | ||
"url": "https://github.com/IgnusG/build-tools/tree/main/packages/vite-build-tools" | ||
"url": "https://github.com/IgnusG/build-tools.git", | ||
"directory": "packages/vite-build-tools" | ||
}, | ||
@@ -23,3 +24,4 @@ "bugs": { | ||
"scripts": { | ||
"build": "rm -rf dist && yarn vite build", | ||
"build": "yarn vite build", | ||
"build:package.json": "yarn build && git add package.json", | ||
"test": "vitest", | ||
@@ -31,10 +33,10 @@ "test:related": "vitest related --run" | ||
"./vite-plugin-entries": { | ||
"types": "./dist/vite-plugin-entries-049bea89.d.ts", | ||
"import": "./dist/vite-plugin-entries-049bea89.es.js", | ||
"default": "./dist/vite-plugin-entries-049bea89.es.js" | ||
"types": "./dist/vite-plugin-entries-655c9874.d.ts", | ||
"import": "./dist/vite-plugin-entries-655c9874.es.js", | ||
"default": "./dist/vite-plugin-entries-655c9874.es.js" | ||
}, | ||
"./vite-plugin-dts": { | ||
"types": "./dist/vite-plugin-dts-90a5d06f.d.ts", | ||
"import": "./dist/vite-plugin-dts-90a5d06f.es.js", | ||
"default": "./dist/vite-plugin-dts-90a5d06f.es.js" | ||
"types": "./dist/vite-plugin-dts-b5f1024a.d.ts", | ||
"import": "./dist/vite-plugin-dts-b5f1024a.es.js", | ||
"default": "./dist/vite-plugin-dts-b5f1024a.es.js" | ||
} | ||
@@ -48,2 +50,2 @@ }, | ||
} | ||
} | ||
} |
@@ -140,3 +140,5 @@ import * as fs from "node:fs"; | ||
closeBundle() { | ||
const packageDetails = JSON.parse(fs.readFileSync(getPackageJSONPath({ config })).toString()); | ||
const packageText = fs.readFileSync(getPackageJSONPath({ config })).toString(); | ||
const packageDetails = JSON.parse(packageText); | ||
const entryTypeExports = new Map( | ||
@@ -169,3 +171,3 @@ Object.entries( | ||
getPackageJSONPath({ config }), | ||
JSON.stringify(packageDetails, undefined, 4), | ||
JSON.stringify(packageDetails, undefined, 4) + (packageText.endsWith("\n") ? "\n" : ""), | ||
); | ||
@@ -172,0 +174,0 @@ }, |
@@ -231,4 +231,6 @@ import * as fs from "node:fs"; | ||
const packageDetails = JSON.parse(fs.readFileSync(getPackageJSONPath({ config })).toString()); | ||
const packageText = fs.readFileSync(getPackageJSONPath({ config })).toString(); | ||
const packageDetails = JSON.parse(packageText); | ||
// Protect against overwriting existing user package.json configuration | ||
@@ -290,3 +292,4 @@ if ( | ||
getPackageJSONPath({ config }), | ||
JSON.stringify(adjustedPackageJson, undefined, 4), | ||
JSON.stringify(adjustedPackageJson, undefined, 4) + | ||
(packageText.endsWith("\n") ? "\n" : ""), | ||
); | ||
@@ -293,0 +296,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
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
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
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
61353
932