-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathpackage.json
28 lines (28 loc) · 1.9 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{
"name": "tutils",
"private": true,
"version": "2.4.0",
"repository": "https://github.com/Teal/TUtils",
"description": "200+ well-tested helper functions & classes for Node.js, including globbing, file watcher, zip, socket and so on | 200+ 个 NodeJS 工具库,顶 140+ 个 NPM 依赖,比如通配符、文件监听、网络库、Zip 压缩等",
"license": "SEE LICENSE IN LICENSE",
"author": "xuld <[email protected]>",
"engines": {
"node": ">=10.12"
},
"devDependencies": {
"@types/mocha": "^9.1.1",
"@types/node": "^18.7.15",
"coveralls": "^3.1.1",
"mocha": "^10.0.0",
"nyc": "^15.1.0",
"ts-node": "^10.9.1",
"typescript": "^4.8.2"
},
"scripts": {
"build": "tsc -p tsconfig.json --declaration && node -e \"var pkg = require('./package.json'); delete pkg.private; delete pkg.devDependencies; delete pkg.scripts; fs.writeFileSync('dist/package.json', JSON.stringify(pkg, undefined, 2)); fs.copyFileSync('README.md', 'dist/README.md'); fs.copyFileSync('LICENSE', 'dist/LICENSE');\"",
"watch": "tsc -p tsconfig.json --declaration --watch",
"test": "node -e \"if (process.argv[7]) { process.argv[6] = process.argv[7].replace(/^src([\\\\/].*)\\.ts/, 'test$' + '1.test.ts'); process.argv.splice(7, 1) } require('mocha/bin/mocha')\" mocha -r ts-node/register/transpile-only --ui exports '**/*.test.ts'",
"coverage": "node -e \"process.argv[8] = require.resolve('mocha/bin/mocha'); if (process.argv[14]) { process.argv[13] = process.argv[14].replace(/^src([\\\\/].*)\\.ts/, 'test$' + '1.test.ts'); process.argv.splice(14, 1) } require('nyc/bin/nyc')\" nyc --reporter=text-summary --reporter=html --report-dir=coverage --temp-dir=coverage/.nyc_output --extension=.ts --include=src/** mocha -r ts-node/register/transpile-only --ui exports '**/*.test.ts'",
"coveralls": "nyc report --reporter=text-lcov --report-dir=coverage --temp-dir=coverage/.nyc_output | coveralls"
}
}