Skip to content

Commit 2dbdcba

Browse files
committed
chore: wip
1 parent f917e31 commit 2dbdcba

File tree

4 files changed

+31
-7
lines changed

4 files changed

+31
-7
lines changed

.idea/webResources.xml

Lines changed: 14 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.stacks/core/actions/src/release.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import { Action } from '@stacksjs/types'
55
import { log } from '@stacksjs/cli'
66
import { app } from '@stacksjs/config'
77

8-
await runActions([
9-
Action.GeneratePackageJsons, // generates the package/library entry points
8+
const result = await runActions([
9+
Action.GenerateLibraryEntries, // generates the package/library entry points
1010
Action.LintFix, // ensure there are no lint errors
1111
// Action.Test, // run the tests
1212
Action.Bump, // bump the versions, create the git tag, generate the changelog, commit & push the changes

.stacks/core/cli/src/run.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export function execSync(command: string) {
4646
* @returns The result of the command.
4747
*/
4848
export async function runCommand(command: string, options?: CliOptions): Promise<ResultAsync<CommandReturnValue, Error>> {
49-
return await exec(command, options)
49+
return exec(command, options)
5050
}
5151

5252
/**

.stacks/core/path/src/index.ts

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ export function collectionsPath(path?: string) {
103103
}
104104

105105
export function componentsPath(path?: string) {
106-
return projectPath(`components/${path || ''}`)
106+
return resourcesPath(`components/${path || ''}`)
107107
}
108108

109109
export function configPath(path?: string) {
@@ -179,15 +179,15 @@ export function storagePath(path?: string) {
179179
}
180180

181181
export function functionsPath(path?: string) {
182-
return projectPath(`functions/${path || ''}`)
182+
return resourcesPath(`functions/${path || ''}`)
183183
}
184184

185185
export function gitPath(path?: string) {
186186
return corePath(`git/${path || ''}`)
187187
}
188188

189189
export function langPath(path?: string) {
190-
return projectPath(`lang/${path || ''}`)
190+
return resourcesPath(`lang/${path || ''}`)
191191
}
192192

193193
export function libraryEntryPath(type: 'vue-components' | 'web-components' | 'functions') {
@@ -244,7 +244,7 @@ export function packageJsonPath(type: 'vue-components' | 'web-components' | 'fun
244244
}
245245

246246
export function pagesPath(path?: string) {
247-
return appPath(`pages/${path || ''}`)
247+
return resourcesPath(`pages/${path || ''}`)
248248
}
249249

250250
export function pathPath(path?: string) {
@@ -305,6 +305,14 @@ export function signalsPath(path?: string) {
305305
return corePath(`signals/${path || ''}`)
306306
}
307307

308+
export function storesPath(path?: string) {
309+
return resourcesPath(`stores/${path || ''}`)
310+
}
311+
312+
export function resourcesPath(path?: string) {
313+
return projectPath(`resources/${path || ''}`)
314+
}
315+
308316
export function routesPath(path?: string) {
309317
return projectPath(`routes/${path || ''}`)
310318
}
@@ -415,6 +423,7 @@ const path = {
415423
queryBuilderPath,
416424
queuePath,
417425
realtimePath,
426+
resourcesPath,
418427
routerPath,
419428
routesPath,
420429
searchEnginePath,
@@ -428,6 +437,7 @@ const path = {
428437
serverlessPath,
429438
stacksPath,
430439
stringsPath,
440+
storesPath,
431441
tablesPath,
432442
testingPath,
433443
testsPath,

0 commit comments

Comments
 (0)