do not generate dts in umd

This commit is contained in:
taoqf 2019-11-18 11:57:36 +08:00
parent dca773639b
commit 8a481f5d19
3 changed files with 3 additions and 1788 deletions

1785
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -8,7 +8,7 @@
"test": "mocha", "test": "mocha",
"clean": "del-cli ./dist/", "clean": "del-cli ./dist/",
"ts:cjs": "tsc -m commonjs", "ts:cjs": "tsc -m commonjs",
"ts:umd": "tsc -t es5 -m umd --outDir ./dist/umd/", "ts:umd": "tsc -t es5 -m umd -d false --outDir ./dist/umd/",
"build": "npm run clean && npm run ts:cjs && npm run ts:umd", "build": "npm run clean && npm run ts:cjs && npm run ts:umd",
"dev": "tsc -w", "dev": "tsc -w",
"pretest": "tsc -m commonjs" "pretest": "tsc -m commonjs"
@ -58,4 +58,4 @@
"url": "https://github.com/taoqf/node-fast-html-parser/issues" "url": "https://github.com/taoqf/node-fast-html-parser/issues"
}, },
"homepage": "https://github.com/taoqf/node-fast-html-parser" "homepage": "https://github.com/taoqf/node-fast-html-parser"
} }

View file

@ -4,7 +4,7 @@
], ],
"compilerOptions": { "compilerOptions": {
"module": "commonjs", "module": "commonjs",
"target": "esnext", "target": "es5",
"noImplicitAny": true, "noImplicitAny": true,
"sourceMap": false, "sourceMap": false,
"emitDecoratorMetadata": true, "emitDecoratorMetadata": true,