File tree Expand file tree Collapse file tree 6 files changed +12
-10
lines changed Expand file tree Collapse file tree 6 files changed +12
-10
lines changed Original file line number Diff line number Diff line change 1
1
import { Action } from '@stacksjs/enums'
2
2
import { log } from '@stacksjs/logging'
3
3
import type { DevOptions } from '@stacksjs/types'
4
- import { runAction } from '../helpers/utils '
4
+ import { runAction } from '../helpers'
5
5
6
6
export async function runDevServer ( options : DevOptions ) {
7
7
log . info ( 'Starting your Frontend Engine...' )
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import { log } from '@stacksjs/logging'
5
5
import { frameworkPath , projectPath } from '@stacksjs/path'
6
6
import type { GeneratorOptions } from '@stacksjs/types'
7
7
import { runNpmScript } from '@stacksjs/utils'
8
- import { runAction } from '../helpers/utils '
8
+ import { generateVsCodeCustomData as genVsCodeCustomData , runAction } from '../helpers'
9
9
10
10
// import { files } from '@stacksjs/storage'
11
11
@@ -49,17 +49,15 @@ export async function generateWebTypes(options?: GeneratorOptions) {
49
49
}
50
50
51
51
export async function generateVsCodeCustomData ( options ?: GeneratorOptions ) {
52
- const result = await runNpmScript ( NpmScript . GenerateVsCodeCustomData , {
53
- cwd : frameworkPath ( ) ,
54
- ...options ,
55
- } )
52
+ const result = await genVsCodeCustomData ( )
56
53
57
54
if ( result . isErr ( ) ) {
58
55
log . error ( 'There was an error generating the custom-elements.json file.' , result . error )
59
56
process . exit ( )
60
57
}
61
58
62
- await runAction ( Action . LintFix , { verbose : true } ) // the generated json file needs to be linted
59
+ await runAction ( Action . LintFix , { verbose : true } ) // because the generated json file needs to be linted
60
+
63
61
log . success ( 'Successfully generated the custom-elements.json file' )
64
62
}
65
63
Original file line number Diff line number Diff line change
1
+ export * from './component-meta'
2
+ export * from './lib-entries'
3
+ export * from './package-json'
4
+ export * from './utils'
5
+ export * from './vscode-custom-data'
Original file line number Diff line number Diff line change 1
1
export * from './action'
2
2
export * from './dev'
3
3
export * from './generate'
4
- export * from './helpers/utils '
4
+ export * from './helpers'
5
5
6
6
export { commit as runCommit } from './commit'
7
7
export { add as runAdd } from './add'
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import process from 'node:process'
2
2
import { parseArgs } from '@stacksjs/cli'
3
3
import { Action } from '@stacksjs/enums'
4
4
import { ExitCode } from '@stacksjs/types'
5
- import { runAction } from '../helpers/utils '
5
+ import { runAction } from '../helpers'
6
6
7
7
const options : any = parseArgs ( )
8
8
Original file line number Diff line number Diff line change @@ -29,7 +29,6 @@ export enum NpmScript {
29
29
GenerateTypes = 'generate:types' ,
30
30
GenerateEntries = 'generate:entries' ,
31
31
GenerateWebTypes = 'generate:web-types' ,
32
- GenerateVsCodeCustomData = 'generate:vscode-custom-data' ,
33
32
GenerateIdeHelpers = 'generate:ide-helpers' ,
34
33
GenerateComponentMeta = 'generate:component-meta' ,
35
34
Release = 'release' ,
You can’t perform that action at this time.
0 commit comments