-
Notifications
You must be signed in to change notification settings - Fork 27
/
package.json
73 lines (73 loc) · 1.89 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
{
"name": "@snyk-labs/modern-npm-package",
"version": "0.0.0-development",
"description": "An npm package for demonstration purposes using TypeScript to build for both the ECMAScript Module format (i.e. ESM or ES Module) and CommonJS Module format. It can be used in Node.js and browser applications.",
"exports": {
".": {
"import": {
"types": "./lib/esm/types/index.d.ts",
"default": "./lib/esm/index.mjs"
},
"require": {
"types": "./lib/cjs/types/index.d.ts",
"default": "./lib/cjs/index.js"
}
}
},
"types": "./lib/cjs/types/index.d.ts",
"main": "./lib/cjs/index.js",
"files": [
"lib/**/*"
],
"scripts": {
"clean": "del-cli ./lib",
"build": "npm run clean && npm run build:esm && npm run build:cjs",
"build:esm": "tsc -p ./configs/tsconfig.esm.json && move-file lib/esm/index.js lib/esm/index.mjs",
"build:cjs": "tsc -p ./configs/tsconfig.cjs.json",
"test": "mocha",
"semantic-release": "semantic-release",
"prepack": "npm run build"
},
"release": {
"branches": [
"main"
]
},
"publishConfig": {
"access": "public"
},
"repository": {
"type": "git",
"url": "https://github.com/snyk-labs/modern-npm-package.git"
},
"keywords": [
"npm",
"javascript",
"typescript",
"esm",
"cjs",
"nodejs",
"commonjs",
"ecmascript",
"beginner",
"example",
"demonstration"
],
"author": "Snyk Labs",
"license": "MIT",
"bugs": {
"url": "https://github.com/snyk-labs/modern-npm-package/issues"
},
"homepage": "https://github.com/snyk-labs/modern-npm-package#readme",
"devDependencies": {
"@types/chai": "^4.3.3",
"@types/mocha": "^9.1.1",
"chai": "^4.3.6",
"del-cli": "^5.0.0",
"mocha": "^10.0.0",
"move-file-cli": "^3.0.0",
"semantic-release": "^19.0.3",
"ts-node": "^10.9.1",
"typescript": "^4.7.4"
}
}