nero-init 1.0.3 → 1.0.5
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/dist/templates/cli/package.json +2 -2
- package/dist/templates/cli/src/index.ts +3 -3
- package/dist/templates/cli/tests/cli.test.ts +9 -0
- package/dist/templates/library/package.json +2 -2
- package/dist/templates/library/src/index.ts +3 -1
- package/dist/templates/library/src/lib/index.ts +1 -0
- package/dist/templates/library/tests/lib.test.ts +8 -0
- package/package.json +1 -1
- /package/dist/templates/cli/{eslint.config.ts → eslint.config.js} +0 -0
- /package/dist/templates/library/{eslint.config.ts → eslint.config.js} +0 -0
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
"test": "vitest",
|
|
20
20
|
"format": "prettier --write .",
|
|
21
21
|
"format:check": "prettier --check .",
|
|
22
|
-
"lint": "eslint .
|
|
23
|
-
"lint:fix": "eslint . --fix
|
|
22
|
+
"lint": "eslint .",
|
|
23
|
+
"lint:fix": "eslint . --fix",
|
|
24
24
|
"prepublishOnly": "npm run build",
|
|
25
25
|
"postbuild": "chmod +x dist/index.js"
|
|
26
26
|
},
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
import pkg from '../package.json' with { type: 'json' }
|
|
4
4
|
import { handleCliOptions } from './cli/options.js'
|
|
5
5
|
|
|
6
|
-
async function run() {
|
|
6
|
+
export async function run() {
|
|
7
7
|
handleCliOptions()
|
|
8
|
-
|
|
8
|
+
return `${pkg.name} is running...`
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
-
await run()
|
|
11
|
+
console.log(await run())
|
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
"test": "vitest",
|
|
20
20
|
"format": "prettier --write .",
|
|
21
21
|
"format:check": "prettier --check .",
|
|
22
|
-
"lint": "eslint .
|
|
23
|
-
"lint:fix": "eslint . --fix
|
|
22
|
+
"lint": "eslint .",
|
|
23
|
+
"lint:fix": "eslint . --fix",
|
|
24
24
|
"prepublishOnly": "npm run build"
|
|
25
25
|
},
|
|
26
26
|
"engines": {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const LIB_NAME = 'library'
|
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|