-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathpackage.json
68 lines (68 loc) · 2.77 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
60
61
62
63
64
65
66
67
68
{
"name": "asynciterator",
"version": "3.9.0",
"description": "An asynchronous iterator library for advanced object pipelines.",
"author": "Ruben Verborgh <[email protected]> (https://ruben.verborgh.org/)",
"contributors": [
"Ruben Taelman <[email protected]> (https://www.rubensworks.net/)",
"Jesse Wright <[email protected]> (https://github.com/jeswr/)",
"Jacopo Scazzosi <[email protected]> (https://jacoscaz.com/)"
],
"license": "MIT",
"repository": "RubenVerborgh/AsyncIterator",
"type": "commonjs",
"main": "dist/asynciterator.js",
"exports": {
"./package.json": "./package.json",
".": {
"require": {
"types": "./dist/asynciterator.d.ts",
"default": "./dist/asynciterator.js"
},
"import": {
"types": "./dist/asynciterator.d.mts",
"default": "./dist/asynciterator.mjs"
}
}
},
"module": "./dist/asynciterator.mjs",
"types": "./dist/asynciterator.d.ts",
"sideEffects": false,
"files": [
"dist"
],
"scripts": {
"build": "npm run build:clean && npm run build:module && npm run build:commonjs",
"build:clean": "rm -rf dist",
"build:module": "tsc -d --module es2015 && ./.change-extension mjs dist/ts-out/*.js && ./.change-extension d.mts dist/ts-out/*.d.ts && mv dist/ts-out/*.mjs dist/ts-out/*.d.mts dist && rm -r dist/ts-out && npm run build:module:import",
"build:commonjs": "tsc -d --module commonjs && mv dist/ts-out/*.js dist/ts-out/*.d.ts dist && rm -r dist/ts-out && npm run build:commonjs:import",
"build:module:import": "sed -i'.bak' -e 's/\\.\\/linkedlist/.\\/linkedlist.mjs/' -e 's/\\.\\/taskscheduler/.\\/taskscheduler.mjs/' dist/asynciterator.mjs dist/asynciterator.d.mts && rm dist/*.bak",
"build:commonjs:import": "sed -i'.bak' -e 's/\\.\\/linkedlist/.\\/linkedlist.js/' -e 's/\\.\\/taskscheduler/.\\/taskscheduler.js/' dist/asynciterator.js && rm dist/*.bak",
"prepare": "npm run build",
"test": "npm run build:commonjs && 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 perf",
"docs": "npm run build:commonjs && npm run jsdoc",
"jsdoc": "jsdoc -c jsdoc.json"
},
"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": "^5.0.0",
"@typescript-eslint/parser": "^5.0.0",
"c8": "^7.2.0",
"chai": "^4.2.0",
"eslint": "^8.0.0",
"husky": "^4.2.5",
"jsdoc": "^4.0.2",
"mocha": "^9.0.0",
"sinon": "^7.2.7",
"sinon-chai": "^3.3.0",
"typescript": "^3.9.5"
}
}