From f227ce784df2b3f8bb16d1d68177495c4d44f4e8 Mon Sep 17 00:00:00 2001 From: Anton Golub Date: Sat, 24 Feb 2024 15:24:25 +0300 Subject: [PATCH] build: move external typings to optional deps relates #712 --- package.json | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 36ad066840..62c014d12f 100644 --- a/package.json +++ b/package.json @@ -44,7 +44,7 @@ "build": "npm run build:js && npm run build:dts", "build:check": "tsc", "build:js": "node scripts/build-js.mjs --format=esm --entry=src/*.ts && npm run build:vendor", - "build:vendor": "node scripts/build-js.mjs --format=esm --entry=src/vendor.ts --bundle=all --banner", + "build:vendor": "node scripts/build-js.mjs --format=esm --entry=src/vendor.ts --bundle=all --banner --minify", "build:dts": "tsc --project tsconfig.prod.json && node scripts/build-dts.mjs", "test": "npm run build && node ./test/all.test.js", "test:types": "tsd", @@ -53,11 +53,13 @@ "circular": "madge --circular src/*", "version": "cat package.json | fx .version" }, - "dependencies": { + "optionalDependencies": { "@types/fs-extra": "^11.0.4", "@types/node": ">=20.11.19" }, "devDependencies": { + "@types/fs-extra": "^11.0.4", + "@types/node": ">=20.11.19", "@types/ps-tree": "^1.1.6", "@types/minimist": "^1.2.5", "@types/which": "^3.0.3", @@ -83,7 +85,7 @@ "yaml": "^2.3.4" }, "publishConfig": { - "registry": "https://wombat-dressing-room.appspot.com" + "registry": "https://wombat-dressing-room.appspot.com", }, "files": [ "build",