Skip to content

Commit eb544d0

Browse files
committed
chore: wip
1 parent 32913cf commit eb544d0

File tree

6 files changed

+12
-10
lines changed

6 files changed

+12
-10
lines changed

storage/framework/core/actions/src/dev/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { Action } from '@stacksjs/enums'
22
import { log } from '@stacksjs/logging'
33
import type { DevOptions } from '@stacksjs/types'
4-
import { runAction } from '../helpers/utils'
4+
import { runAction } from '../helpers'
55

66
export async function runDevServer(options: DevOptions) {
77
log.info('Starting your Frontend Engine...')

storage/framework/core/actions/src/generate/index.ts

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { log } from '@stacksjs/logging'
55
import { frameworkPath, projectPath } from '@stacksjs/path'
66
import type { GeneratorOptions } from '@stacksjs/types'
77
import { runNpmScript } from '@stacksjs/utils'
8-
import { runAction } from '../helpers/utils'
8+
import { generateVsCodeCustomData as genVsCodeCustomData, runAction } from '../helpers'
99

1010
// import { files } from '@stacksjs/storage'
1111

@@ -49,17 +49,15 @@ export async function generateWebTypes(options?: GeneratorOptions) {
4949
}
5050

5151
export async function generateVsCodeCustomData(options?: GeneratorOptions) {
52-
const result = await runNpmScript(NpmScript.GenerateVsCodeCustomData, {
53-
cwd: frameworkPath(),
54-
...options,
55-
})
52+
const result = await genVsCodeCustomData()
5653

5754
if (result.isErr()) {
5855
log.error('There was an error generating the custom-elements.json file.', result.error)
5956
process.exit()
6057
}
6158

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+
6361
log.success('Successfully generated the custom-elements.json file')
6462
}
6563

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
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'

storage/framework/core/actions/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
export * from './action'
22
export * from './dev'
33
export * from './generate'
4-
export * from './helpers/utils'
4+
export * from './helpers'
55

66
export { commit as runCommit } from './commit'
77
export { add as runAdd } from './add'

storage/framework/core/actions/src/upgrade/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import process from 'node:process'
22
import { parseArgs } from '@stacksjs/cli'
33
import { Action } from '@stacksjs/enums'
44
import { ExitCode } from '@stacksjs/types'
5-
import { runAction } from '../helpers/utils'
5+
import { runAction } from '../helpers'
66

77
const options: any = parseArgs()
88

storage/framework/core/enums/src/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ export enum NpmScript {
2929
GenerateTypes = 'generate:types',
3030
GenerateEntries = 'generate:entries',
3131
GenerateWebTypes = 'generate:web-types',
32-
GenerateVsCodeCustomData = 'generate:vscode-custom-data',
3332
GenerateIdeHelpers = 'generate:ide-helpers',
3433
GenerateComponentMeta = 'generate:component-meta',
3534
Release = 'release',

0 commit comments

Comments
 (0)