-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
76 lines (76 loc) · 2.73 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
69
70
71
72
73
74
75
76
{
"name": "call-id",
"version": "0.1.0",
"description": "Get the location from where you're called from.",
"main": "./dist/cjs/index.cjs",
"type": "module",
"exports": {
".": {
"import": "./dist/esm/index.js",
"require": "./dist/cjs/index.cjs"
}
},
"engines": {
"node": ">=10"
},
"scripts": {
"all": "npm run clean && npm run build && npm run lint && npm run test",
"clean": "rimraf dist reports test/generated",
"lint": "eslint . --ext .js,.jsx,.ts,.tsx --ignore-path .gitignore",
"build": "npm run build:tsc && npm run build:tests && npm run build:cjs && npm run build:browser",
"build:tsc": "tsc",
"build:tsc:watch": "tsc -w",
"build:tests": "node --experimental-modules tasks/generate-tests.mjs",
"build:tests:watch": "npm run build:tests -- -w",
"build:cjs": "esbuild --bundle dist/esm/index.js --outfile=dist/cjs/index.cjs --format=cjs",
"build:cjs:watch": "npm run build:cjs -- --watch",
"build:browser": "esbuild --bundle dist/esm/index.js --outfile=dist/browser/index.js --format=iife --global-name=callId",
"build:browser:watch": "npm run build:browser -- --watch",
"prebuild:watch": "npm run build:tsc",
"build:watch": "concurrently \"npm run build:tsc:watch\" \"npm run build:tests:watch\" \"npm run build:cjs:watch\" \"npm run build:browser:watch\"",
"test": "npm run test:node && npm run test:browser",
"test:node": "if-node-version \"<=10\" npm run test:node:10 && if-node-version \">10\" npm run test:node:gt10",
"test:node:10": "mocha --no-config test/generated/node.test.cjs",
"test:node:gt10": "mocha",
"test:browser": "karma start karma.conf.cjs --single-run",
"test:browser:open": "karma start karma.conf.cjs --no-browsers"
},
"keywords": [
"call site",
"stack trace",
"caller id",
"stacktrace",
"callsite"
],
"author": {
"email": "[email protected]",
"name": "Nico Jansen",
"url": "https://github.com/nicojs"
},
"license": "Apache-2.0",
"devDependencies": {
"@types/chai": "^4.2.15",
"@types/mocha": "^8.2.0",
"@types/node": "^14.14.28",
"@typescript-eslint/eslint-plugin": "^4.15.1",
"@typescript-eslint/parser": "^4.15.1",
"chai": "^4.3.0",
"concurrently": "^5.3.0",
"esbuild": "^0.8.47",
"eslint": "^7.20.0",
"eslint-config-prettier": "^7.2.0",
"eslint-plugin-prettier": "^3.3.1",
"if-node-version": "^1.1.1",
"karma": "^6.1.1",
"karma-chai": "^0.1.0",
"karma-chrome-launcher": "^3.1.0",
"karma-firefox-launcher": "^2.1.0",
"karma-mocha": "^2.0.1",
"karma-mocha-reporter": "^2.2.5",
"mocha": "^8.3.0",
"prettier": "^2.2.1",
"rimraf": "^3.0.2",
"standard-version": "^9.1.1",
"typescript": "^4.1.5"
}
}