-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
89 lines (89 loc) · 3.1 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
77
78
79
80
81
82
83
84
85
86
87
88
89
{
"name": "@carpasse/node-open-source-project-template",
"version": "1.2.0-beta.2",
"description": "Repository template for new Open Source projects with NodeJS",
"main": "./dist/cjs/index.js",
"module": "./dist/cjs/index.mjs",
"type": "commonjs",
"types": "./dist/cjs/index.d.ts",
"exports": {
".": {
"import": {
"types": "./dist/esm/index.d.ts",
"default": "./dist/esm/index.js"
},
"require": {
"types": "./dist/cjs/index.d.ts",
"default": "./dist/cjs/index.js"
}
}
},
"keywords": [
"node",
"typescript",
"open-source",
"template"
],
"repository": {
"type": "git",
"url": "git+https://github.com/carpasse/node-open-source-project-template.git"
},
"scripts": {
"test": "node --import tsx --no-warnings --test src/**/*.test.ts",
"test:watch": "node --import tsx --no-warnings --test --watch ./src/**/*.test.ts",
"test:coverage": "node --import tsx --no-warnings --test --experimental-test-coverage ./src/**/*.test.ts",
"build": "npm-run-all clean build:*",
"clean": "rimraf dist",
"build:cjs": "tsc -p ./tsconfig.cjs.json && cat >dist/cjs/package.json <<!EOF\n{\n \"type\": \"commonjs\"\n}\n!EOF",
"build:esm": "tsc --project tsconfig.esm.json && cat >dist/esm/package.json <<!EOF\n{\n \"type\": \"module\"\n}\n!EOF",
"lint": "eslint './**/*.{js,jsx,ts,tsx}' && npm run typecheck",
"lint:fix": "eslint './**/*.{js,jsx,ts,tsx}' --fix",
"lint:ci": "eslint './**/*.{js,jsx,ts,tsx}' --fix",
"typecheck": "tsc --noEmit",
"husky:setup": "npx husky add .husky/pre-commit \"npm run pre-commit\" && npx husky add .husky/pre-push \"npm run pre-push\" && npx husky add .husky/commit-msg \"npm run commitlint\"",
"husky": "npx husky install && npm run husky:setup",
"prepare": "shx test -d .husky || npm run husky",
"pre-commit": "pretty-quick --staged && npm run lint",
"license-check": "npx @onebeyond/license-checker check \"(MIT OR GPL-1.0+) AND 0BSD\"",
"pre-push": "npm run test",
"commitlint": "commitlint --edit"
},
"author": "Carlos Serrano",
"license": "MIT",
"publishConfig": {
"access": "public"
},
"engines": {
"node": ">=18.x"
},
"config": {
"commitizen": {
"path": "./node_modules/cz-conventional-changelog"
}
},
"devDependencies": {
"@commitlint/cli": "^18.4.3",
"@commitlint/config-conventional": "^18.4.3",
"@onebeyond/license-checker": "^2.0.1",
"@semantic-release/commit-analyzer": "^11.1.0",
"@semantic-release/git": "^10.0.1",
"@semantic-release/github": "^9.2.6",
"@semantic-release/npm": "^11.0.2",
"@semantic-release/release-notes-generator": "^12.1.0",
"commitizen": "^4.3.0",
"cross-env": "^7.0.3",
"cz-conventional-changelog": "^3.3.0",
"eslint": "^8.55.0",
"eslint-config-ts-mailonline": "^3.0.0",
"husky": "^8.0.3",
"npm-run-all": "^4.1.5",
"prettier": "^2.8.8",
"pretty-quick": "^3.1.3",
"rimraf": "^5.0.5",
"semantic-release": "^23.0.0",
"shx": "^0.3.4",
"ts-node": "^10.9.1",
"tsx": "^4.6.2",
"typescript": "^5.3.2"
}
}