From 541f3b3537d12968ed07b284617131864bfbb607 Mon Sep 17 00:00:00 2001 From: Joachim Viide Date: Thu, 23 Jan 2020 18:47:58 +0200 Subject: [PATCH] Fix typing file name & package.json field --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index f41ac4e..3f80a0d 100644 --- a/package.json +++ b/package.json @@ -5,9 +5,10 @@ "main": "dist/htm.js", "umd:main": "dist/htm.umd.js", "module": "dist/htm.module.js", + "types": "dist/htm.d.ts", "scripts": { "build": "npm run -s build:main && npm run -s build:mini && npm run -s build:preact && npm run -s build:react && npm run -s build:babel && npm run -s build:babel-transform-jsx && npm run -s build:mjsalias", - "build:main": "microbundle src/index.mjs -f es,umd --no-sourcemap --target web && microbundle src/cjs.mjs -f iife --no-sourcemap --target web && cp src/index.d.ts dist", + "build:main": "microbundle src/index.mjs -f es,umd --no-sourcemap --target web && microbundle src/cjs.mjs -f iife --no-sourcemap --target web && cp src/index.d.ts dist/htm.d.ts", "build:mini": "microbundle src/index.mjs -o ./mini/index.js -f es,umd --no-sourcemap --target web --alias ./constants.mjs=./constants-mini.mjs && microbundle src/cjs.mjs -o ./mini/index.js -f iife --no-sourcemap --target web --alias ./constants.mjs=./constants-mini.mjs && cp src/index.d.ts mini", "build:preact": "cd src/integrations/preact && npm run build", "build:react": "cd src/integrations/react && npm run build",