@koalarx/nest-cli 1.2.13 → 1.2.14
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/index.js +31431 -0
- package/index.ts +4 -0
- package/package.json +4 -3
package/index.ts
CHANGED
|
@@ -7,6 +7,10 @@ import path from 'path'
|
|
|
7
7
|
import { newProject } from './commands/new-project'
|
|
8
8
|
import chalk from 'chalk'
|
|
9
9
|
import figlet from 'figlet'
|
|
10
|
+
import { fileURLToPath } from 'url'
|
|
11
|
+
|
|
12
|
+
const __filename = fileURLToPath(import.meta.url)
|
|
13
|
+
const __dirname = path.dirname(__filename)
|
|
10
14
|
|
|
11
15
|
const packageJsonPath = path.join(__dirname, '../package.json')
|
|
12
16
|
const packageJson = JSON.parse(readFileSync(packageJsonPath, 'utf8'))
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@koalarx/nest-cli",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.14",
|
|
4
4
|
"description": "Biblioteca de CLI para criação de projetos utilizando Koala Nest",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"test": "vitest run",
|
|
@@ -16,10 +16,11 @@
|
|
|
16
16
|
"deploy:feature": "npm version minor",
|
|
17
17
|
"deploy:release": "npm version major"
|
|
18
18
|
},
|
|
19
|
-
"main": "
|
|
19
|
+
"main": "index.js",
|
|
20
20
|
"bin": {
|
|
21
|
-
"koala-nest": "index.
|
|
21
|
+
"koala-nest": "index.js"
|
|
22
22
|
},
|
|
23
|
+
"type": "module",
|
|
23
24
|
"repository": {
|
|
24
25
|
"type": "git",
|
|
25
26
|
"url": "git+https://github.com/igordrangel/koala-nest-cli.git"
|