From 68489099ce4de7e42b0477c866d4ceff7d6dbf89 Mon Sep 17 00:00:00 2001 From: Jamie Hoover Date: Fri, 24 Dec 2021 11:26:27 -0800 Subject: [PATCH] fix: color-scheme - copy css assets - map exports correctly --- package.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 3351f6a5..22c2e437 100644 --- a/package.json +++ b/package.json @@ -53,7 +53,8 @@ "import": "./dist/ninjakit.es.js", "require": "./dist/ninjakit.umd.js" }, - "./color-scheme": "./dist/color-scheme.js", + "./color-scheme": "./dist/color-scheme/index.js", + "./color-scheme/default.css": "./dist/color-scheme/default.css", "./style.css": "./dist/style.css" }, "files": [ @@ -94,7 +95,7 @@ "sideEffects": false, "scripts": { "build": "run-p build:**", - "build:color-scheme": "tsc --project tsconfig-color-scheme.json", + "build:color-scheme": "tsc --project tsconfig-color-scheme.json && cp src/lib/color-scheme/*.css dist/color-scheme", "build:lib": "vite build --mode=lib", "build:types": "tsc --emitDeclarationOnly --project tsconfig-types.json", "check": "run-p check:**",