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

@ignsg/vite-build-tools

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ignsg/vite-build-tools - npm Package Compare versions

Comparing version 0.1.2 to 0.1.3

dist/vite-plugin-dts-b5f1024a.d.ts

22

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

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