@startupjs/cli 0.62.0 → 0.63.0-alpha.0
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/commands/check.js +7 -1
- package/package.json +8 -6
package/commands/check.js
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import { runCli } from '
|
|
1
|
+
import { runCli } from 'cssxjs/check'
|
|
2
|
+
import { createRequire } from 'node:module'
|
|
3
|
+
import { join } from 'node:path'
|
|
2
4
|
|
|
3
5
|
export const name = 'check [files...]'
|
|
4
6
|
export const description = 'Type-check the current project with React-Pug support'
|
|
@@ -30,6 +32,10 @@ export const options = [
|
|
|
30
32
|
]
|
|
31
33
|
|
|
32
34
|
export async function action (files = [], options) {
|
|
35
|
+
const requireFromProject = createRequire(join(process.cwd(), 'package.json'))
|
|
36
|
+
const { generateTeamplayEnv } = requireFromProject('teamplay/babel/loader')
|
|
37
|
+
generateTeamplayEnv({ fallbackModelsFolders: ['model'] })
|
|
38
|
+
|
|
33
39
|
const args = [...files]
|
|
34
40
|
if (options.project) args.push('--project', options.project)
|
|
35
41
|
if (options.tagFunction) args.push('--tagFunction', options.tagFunction)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@startupjs/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.63.0-alpha.0",
|
|
4
4
|
"description": "The command-line tool for StartupJS apps.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "index.js",
|
|
@@ -9,13 +9,15 @@
|
|
|
9
9
|
"access": "public"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@
|
|
13
|
-
"@startupjs/
|
|
14
|
-
"@startupjs/pm": "^0.62.0",
|
|
12
|
+
"@startupjs/patches": "^0.63.0-alpha.0",
|
|
13
|
+
"@startupjs/pm": "^0.63.0-alpha.0",
|
|
15
14
|
"chalk": "^5.3.0",
|
|
16
15
|
"commander": "^12.0.0",
|
|
17
|
-
"create-startupjs": "^0.
|
|
16
|
+
"create-startupjs": "^0.63.0-alpha.0",
|
|
18
17
|
"execa": "^8.0.1"
|
|
19
18
|
},
|
|
20
|
-
"
|
|
19
|
+
"peerDependencies": {
|
|
20
|
+
"cssxjs": "*"
|
|
21
|
+
},
|
|
22
|
+
"gitHead": "729ad04a5d917e24ebde3ac78505dd91d224773c"
|
|
21
23
|
}
|