create-node-lib 2.7.4 → 2.7.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -2,7 +2,11 @@ import pluginSecurity from 'eslint-plugin-security'
|
|
|
2
2
|
import neostandard, { resolveIgnoresFromGitignore, plugins } from 'neostandard'
|
|
3
3
|
|
|
4
4
|
export default [
|
|
5
|
-
...neostandard({
|
|
5
|
+
...neostandard({
|
|
6
|
+
ignores: resolveIgnoresFromGitignore(),
|
|
7
|
+
ts: true, // Enable TypeScript support,
|
|
8
|
+
filesTs: ['src/**/*.ts', '__tests__/**/*.ts']
|
|
9
|
+
}),
|
|
6
10
|
plugins.n.configs['flat/recommended-script'],
|
|
7
11
|
pluginSecurity.configs.recommended,
|
|
8
12
|
{
|
package/template/package.json
CHANGED
|
@@ -33,12 +33,13 @@
|
|
|
33
33
|
"bin"
|
|
34
34
|
],
|
|
35
35
|
"scripts": {
|
|
36
|
+
"start": "node --import tsx src/bin/cli.ts",
|
|
36
37
|
"build": "tsc && tsup",
|
|
37
38
|
"lint": "eslint . && npm run lint:lockfile",
|
|
38
39
|
"lint:fix": "eslint . --fix",
|
|
39
40
|
"lint:lockfile": "lockfile-lint --path package-lock.json --validate-https --allowed-hosts npm yarn",
|
|
40
|
-
"test": "c8 node --
|
|
41
|
-
"test:watch": "c8 node --
|
|
41
|
+
"test": "c8 node --import tsx --test __tests__/**/*.test.ts",
|
|
42
|
+
"test:watch": "c8 node --import tsx --test --watch __tests__/**/*.test.ts",
|
|
42
43
|
"coverage:view": "open coverage/lcov-report/index.html",
|
|
43
44
|
"version": "changeset version",
|
|
44
45
|
"release": "changeset publish"
|
|
@@ -75,8 +76,8 @@
|
|
|
75
76
|
"lint-staged": "^15.2.7",
|
|
76
77
|
"lockfile-lint": "^4.14.0",
|
|
77
78
|
"neostandard": "^0.11.0",
|
|
78
|
-
"ts-node": "^10.9.2",
|
|
79
79
|
"tsup": "^8.1.0",
|
|
80
|
+
"tsx": "^4.19.4",
|
|
80
81
|
"typescript": "^5.5.3",
|
|
81
82
|
"validate-conventional-commit": "^1.0.4"
|
|
82
83
|
},
|