From fd2eee1c18760320f27171dc13c5f5d7f2718067 Mon Sep 17 00:00:00 2001 From: "netop://ウィビ" Date: Sun, 26 Apr 2026 19:45:07 -0700 Subject: adds type files --- package.json | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) (limited to 'package.json') diff --git a/package.json b/package.json index 7746d27..e37fe7d 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,10 @@ "exports": { ".": { "import": "./dist/index.js", - "types": "./dist/index.d.ts" + "types": [ + "./dist/index.d.ts", + "./dist/colors.d.ts" + ] }, "./scss": "./dist/_palette.scss", "./css": "./dist/uchu.css" @@ -29,13 +32,17 @@ "url": "https://code.webb.page/nevercease/uchu.git" }, "scripts": { - "build": "bun run scripts/generate.ts && bun run build:js", - "build:js": "bun build src/index.ts --outdir dist --target node --format esm --dts", + "build": "bun run scripts/generate.ts && bun run build:js && bun run build:types", + "build:js": "bun build src/index.ts --outdir dist --target node --format esm", + "build:types": "tsc -p tsconfig.build.json", "dryRun": "bun pm pack --dry-run", "prepublishOnly": "bun run build", "typecheck": "tsc" }, "type": "module", - "types": "./dist/index.d.ts", - "version": "2.1.0" + "types": [ + "./dist/index.d.ts", + "./dist/colors.d.ts" + ], + "version": "2.2.0" } -- cgit v1.2.3