/
package.json
166 lines (166 loc) 路 4.12 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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
{
"name": "node-import-alias-ts",
"version": "0.0.15",
"description": "Simple POC writing a NPM package using TypeScript and Node.js import aliases.",
"license": "MIT",
"author": "Jo茫o Lenon <lenon@athenna.io>",
"bugs": "https://github.com/jlenon7/node-import-alias-ts/issues",
"repository": "https://github.com/jlenon7/node-import-alias-ts.git",
"homepage": "https://github.com/jlenon7/node-import-alias-ts#readme",
"keywords": [
"esm",
"import-alias"
],
"scripts": {
"publish:build": "cd build && npm publish --access public",
"prepublishOnly": "cp ../LICENSE.md LICENSE.md && cp ../README.md README.md",
"compile": "rimraf build && tsc --project bin/tsconfig.build.json",
"lint:fix": "eslint \"{bin,src,tests}/**/*.ts\" --fix",
"test": "npm run --silent lint:fix && sh node bin/test.ts",
"test:debug": "cross-env DEBUG=api:* sh node --inspect bin/test.ts",
"test:coverage": "c8 npm run --silent test"
},
"files": [
"src/*.js",
"src/*.d.ts",
"src/**/*.js",
"src/**/*.d.ts",
"templates"
],
"type": "module",
"main": "./src/index.js",
"types": "./src/index.d.ts",
"exports": {
".": "./src/index.js"
},
"imports": {
"#bin/*": "./bin/*.js",
"#bin": "./bin/index.js",
"#src/*": "./src/*.js",
"#src": "./src/index.js",
"#tests/*": "./tests/*.js",
"#tests": "./tests/index.js"
},
"devDependencies": {
"@japa/assert": "^1.3.6",
"@japa/run-failed-tests": "^1.1.0",
"@japa/runner": "^2.2.2",
"@japa/spec-reporter": "^1.3.2",
"@typescript-eslint/eslint-plugin": "^5.48.1",
"@typescript-eslint/parser": "^5.48.1",
"c8": "^7.12.0",
"commitizen": "^4.2.6",
"cross-env": "^7.0.3",
"cz-conventional-changelog": "^3.3.0",
"eslint": "^8.32.0",
"eslint-config-prettier": "^8.6.0",
"eslint-config-standard": "^17.0.0",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-n": "^15.6.1",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-promise": "^6.1.1",
"husky": "^3.1.0",
"lint-staged": "^12.5.0",
"prettier": "^2.8.3",
"reflect-metadata": "^0.1.13",
"rimraf": "^4.4.0",
"ts-node": "^10.9.1",
"typescript": "^4.9.4"
},
"c8": {
"all": true,
"include": [
"src/**/*.ts"
],
"exclude": [],
"reporter": [
"text-summary",
"html"
],
"report-dir": "./tests/Coverage",
"check-coverage": true
},
"husky": {
"hooks": {
"prepare-commit-msg": "lint-staged && exec < /dev/tty && git cz --hook || true"
}
},
"lint-staged": {
"*.js": [
"eslint --fix",
"git add"
],
"*.json": [
"prettier --write",
"git add"
]
},
"config": {
"commitizen": {
"path": "./node_modules/cz-conventional-changelog"
}
},
"prettier": {
"singleQuote": true,
"trailingComma": "all",
"arrowParens": "avoid",
"endOfLine": "lf",
"semi": false,
"printWidth": 80,
"overrides": [
{
"files": "tests/**/*",
"options": {
"printWidth": 120
}
}
]
},
"eslintIgnore": [
"build/**/*"
],
"eslintConfig": {
"env": {
"es2021": true,
"node": true
},
"globals": {
"ioc": true,
"Env": true,
"Path": true,
"Config": true,
"container": true
},
"plugins": [
"prettier",
"@typescript-eslint"
],
"extends": [
"standard",
"eslint:recommended",
"plugin:prettier/recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/eslint-recommended"
],
"parser": "@typescript-eslint/parser",
"rules": {
"camelcase": "off",
"dot-notation": "off",
"prettier/prettier": "error",
"no-useless-constructor": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/no-unused-vars": [
"error",
{
"argsIgnorePattern": "^_",
"varsIgnorePattern": "^_",
"caughtErrorsIgnorePattern": "^_"
}
]
}
},
"dependencies": {
"@athenna/common": "^3.6.0"
}
}