-
Notifications
You must be signed in to change notification settings - Fork 7
/
package.json
59 lines (59 loc) · 2.25 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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
{
"name": "asynciterator",
"version": "3.2.1",
"description": "An asynchronous iterator library for advanced object pipelines.",
"author": "Ruben Verborgh <ruben@verborgh.org>",
"type": "module",
"main": "dist/asynciterator.cjs",
"exports": {
"./package.json": "./package.json",
".": {
"import": "./dist/asynciterator.js",
"require": "./dist/asynciterator.cjs"
}
},
"module": "./dist/asynciterator.js",
"types": "./dist/asynciterator.d.ts",
"sideEffects": false,
"files": [
"dist"
],
"scripts": {
"build": "npm run build:clean && npm run build:module && npm run build:commonjs && npm run build:types",
"build:clean": "rm -rf dist",
"build:module": " tsc --module es2015 && mv dist/ts-out/*.js dist && npm run build:module:import",
"build:module:import": " sed -i'.bak' -e 's/\\.\\/taskscheduler/.\\/taskscheduler.js/' dist/asynciterator.js && rm dist/*.bak",
"build:commonjs": "tsc --module commonjs && ./.change-extension cjs dist/ts-out/*.js && mv dist/ts-out/*.cjs dist && npm run build:commonjs:import",
"build:commonjs:import": "sed -i'.bak' -e 's/\\.\\/taskscheduler/.\\/taskscheduler.cjs/' dist/asynciterator.cjs && rm dist/*.bak",
"build:types": "tsc -d && rm dist/ts-out/*.js && mv dist/ts-out/*.d.ts dist",
"prepare": "npm run build",
"test": "npm run build:module && npm run test:microtask",
"test:microtask": "npm run mocha",
"test:immediate": "npm run mocha -- --require test/config/useSetImmediate.js",
"mocha": "c8 mocha",
"lint": "eslint asynciterator.ts test",
"docs": "npm run build:module && npm run jsdoc",
"jsdoc": "jsdoc -c jsdoc.json"
},
"license": "MIT",
"repository": "RubenVerborgh/AsyncIterator",
"devDependencies": {
"@babel/cli": "^7.10.1",
"@babel/core": "^7.10.2",
"@babel/plugin-transform-modules-commonjs": "^7.10.1",
"@babel/register": "^7.10.1",
"@types/node": "^14.0.13",
"@typescript-eslint/eslint-plugin": "^3.2.0",
"@typescript-eslint/parser": "^3.2.0",
"c8": "^7.2.0",
"chai": "^4.2.0",
"eslint": "^5.16.0",
"husky": "^4.2.5",
"jaguarjs-jsdoc": "^1.1.0",
"jsdoc": "^3.5.5",
"mocha": "^8.0.0",
"sinon": "^7.2.7",
"sinon-chai": "^3.3.0",
"typescript": "^3.9.5"
}
}