diff --git a/package.json b/package.json index 33866b80..368b23cb 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ "scripts": { "pub": "script/publish.sh", "prepare": "npm run build", - "build": "script/build.ts", + "build": "script/build.ts && cp -r lib/\\@types dist/ && (find dist/\\@types ! -name '*.d.ts' -type f | xargs rm)", "test": "npm run build && script/test", "start": "script/watch", "pkg": "script/make-pkgs.sh",