Skip to content

Commit b353d1b

Browse files
committed
chore: wip
1 parent a17b94b commit b353d1b

File tree

16 files changed

+24
-30
lines changed

16 files changed

+24
-30
lines changed

storage/framework/core/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -348,6 +348,7 @@
348348
"scripts": {
349349
"buddy": "bun --bun run ./buddy/src/cli.ts",
350350
"build": "cd config && bun run build && cd ../env && bun run build && cd ../storage && bun run build && cd .. && bun ./build.ts",
351+
"types": "bun --bun run ./types/src/cli.ts",
351352
"up": "bunx taze major -I",
352353
"publish:framework": "./scripts/publish",
353354
"publish:dummy-libs": "bun --bun run generate:entries && bunx pnpm --filter './libs/components/vue' --filter './libs/components/web' --filter './libs/functions' publish --access public --no-git-checks"
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
import { localTunnel } from './tunnel'
22

33
export async function createLocalTunnel(port: number) {
4-
const tunnel = await localTunnel({ port })
5-
return tunnel.url
4+
return await localTunnel({ port })
65
}
76

87
export { localTunnel }

storage/framework/core/types/src/email.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
import type { IEmailOptions } from '@novu/stateless'
2-
3-
export type EmailOptions = Omit<IEmailOptions, 'from'> & {
1+
export interface EmailOptions {
42
from: {
53
name: string
64
address: string

storage/framework/core/validation/src/validate.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import v, { Vine as Validator } from '@vinejs/vine'
22
import { MoneyValidator } from './types/money'
33

4+
// @ts-expect-error - investigate why this is not working
45
Validator.macro('money', () => {
56
return new MoneyValidator()
67
})

storage/framework/core/vite/src/example-vue.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { examplesPath } from '@stacksjs/path'
2-
import { server } from '@stacksjs/server'
32
import { alias } from '@stacksjs/alias'
43
import { defineConfig } from 'vite'
54

@@ -10,9 +9,9 @@ export default defineConfig({
109
alias,
1110
},
1211

13-
server: server({
14-
type: 'example',
15-
}),
12+
// server: server({
13+
// type: 'example',
14+
// }),
1615

1716
// plugins: [
1817
// uiEngine(),

storage/framework/core/vite/src/example-wc.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { examplesPath } from '@stacksjs/path'
2-
import { server } from '@stacksjs/server'
32
import { alias } from '@stacksjs/alias'
43
import { defineConfig } from 'vite'
54

@@ -10,9 +9,9 @@ export const webComponentsExampleConfig = {
109
alias,
1110
},
1211

13-
server: server({
14-
type: 'example',
15-
}),
12+
// server: server({
13+
// type: 'example',
14+
// }),
1615

1716
// plugins: [
1817
// uiEngine(true),

storage/framework/core/vite/src/functions.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
import { frameworkPath, functionsPath, libraryEntryPath, projectPath } from '@stacksjs/path'
22
import { alias } from '@stacksjs/alias'
3+
import type { UserConfig } from 'vite'
34
import { defineConfig } from 'vite'
45
import type { ViteBuildOptions } from '.'
56

67
// import { autoImports } from '.'
78

8-
export const functionsConfig: ViteConfig = {
9+
export const functionsConfig: UserConfig = {
910
root: functionsPath(),
1011
envDir: projectPath(),
1112
envPrefix: '',

storage/framework/core/vite/src/plugin/docs.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
import { kolorist as c } from '@stacksjs/cli'
2-
3-
// @ts-expect-error - unsure why this is an error because those are valid exports
42
import type { ViteDevServer } from 'vite'
53
import { version } from '../../package.json'
64

storage/framework/core/vite/src/plugin/stacks.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
/* eslint-disable no-console */
2-
// @ts-expect-error - unsure why this is an error because those are valid exports
32
import type { ViteDevServer as DevServer, Plugin } from 'vite'
43
import { kolorist as c, parseOptions } from '@stacksjs/cli'
54
import { localUrl } from '@stacksjs/config'

storage/framework/core/vite/src/web-components.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ export function webComponentsBuildOptions(): ViteBuildOptions {
5757
}
5858
}
5959

60-
// @ts-expect-error - resolve this later
6160
export default defineConfig(({ command }) => {
6261
if (command === 'serve')
6362
return webComponentsConfig

storage/framework/system-tray/src/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { ViteSSG } from 'vite-ssg'
22
import { setupLayouts } from 'virtual:generated-layouts'
3-
import { routes } from 'vue-router/auto/routes'
3+
import { routes } from 'vue-router/auto-routes'
44
import '@unocss/reset/tailwind.css'
55
import './styles/main.css'
66
import { createPinia } from 'pinia'

storage/framework/types/dashboard-router.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ import type {
3737
_DefineLoaderOptions,
3838
} from 'unplugin-vue-router/types'
3939

40-
declare module 'vue-router/auto/routes' {
40+
declare module 'vue-router/auto-routes' {
4141
export interface RouteNamedMap {
4242
'/': RouteRecordInfo<'/', '/', Record<never, never>, Record<never, never>>,
4343
'/commands/': RouteRecordInfo<'/commands/', '/commands', Record<never, never>, Record<never, never>>,
@@ -65,7 +65,7 @@ declare module 'vue-router/auto/routes' {
6565
}
6666

6767
declare module 'vue-router/auto' {
68-
import type { RouteNamedMap } from 'vue-router/auto/routes'
68+
import type { RouteNamedMap } from 'vue-router/auto-routes'
6969

7070
export type RouterTyped = _RouterTyped<RouteNamedMap>
7171

@@ -148,7 +148,7 @@ declare module 'vue-router/auto' {
148148
}
149149

150150
declare module 'vue-router' {
151-
import type { RouteNamedMap } from 'vue-router/auto/routes'
151+
import type { RouteNamedMap } from 'vue-router/auto-routes'
152152

153153
export interface TypesConfig {
154154
beforeRouteUpdate: NavigationGuard<RouteNamedMap>

storage/framework/types/router.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ import type {
3737
_DefineLoaderOptions,
3838
} from 'unplugin-vue-router/types'
3939

40-
declare module 'vue-router/auto/routes' {
40+
declare module 'vue-router/auto-routes' {
4141
export interface RouteNamedMap {
4242
'/': RouteRecordInfo<'/', '/', Record<never, never>, Record<never, never>>,
4343
'/[...all]': RouteRecordInfo<'/[...all]', '/:all(.*)', { all: ParamValue<true> }, { all: ParamValue<false> }>,
@@ -71,7 +71,7 @@ declare module 'vue-router/auto/routes' {
7171
}
7272

7373
declare module 'vue-router/auto' {
74-
import type { RouteNamedMap } from 'vue-router/auto/routes'
74+
import type { RouteNamedMap } from 'vue-router/auto-routes'
7575

7676
export type RouterTyped = _RouterTyped<RouteNamedMap>
7777

@@ -154,7 +154,7 @@ declare module 'vue-router/auto' {
154154
}
155155

156156
declare module 'vue-router' {
157-
import type { RouteNamedMap } from 'vue-router/auto/routes'
157+
import type { RouteNamedMap } from 'vue-router/auto-routes'
158158

159159
export interface TypesConfig {
160160
beforeRouteUpdate: NavigationGuard<RouteNamedMap>

storage/framework/types/system-tray-router.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,14 @@ import type {
3737
_DefineLoaderOptions,
3838
} from 'unplugin-vue-router/types'
3939

40-
declare module 'vue-router/auto/routes' {
40+
declare module 'vue-router/auto-routes' {
4141
export interface RouteNamedMap {
4242
'/': RouteRecordInfo<'/', '/', Record<never, never>, Record<never, never>>,
4343
}
4444
}
4545

4646
declare module 'vue-router/auto' {
47-
import type { RouteNamedMap } from 'vue-router/auto/routes'
47+
import type { RouteNamedMap } from 'vue-router/auto-routes'
4848

4949
export type RouterTyped = _RouterTyped<RouteNamedMap>
5050

@@ -127,7 +127,7 @@ declare module 'vue-router/auto' {
127127
}
128128

129129
declare module 'vue-router' {
130-
import type { RouteNamedMap } from 'vue-router/auto/routes'
130+
import type { RouteNamedMap } from 'vue-router/auto-routes'
131131

132132
export interface TypesConfig {
133133
beforeRouteUpdate: NavigationGuard<RouteNamedMap>

storage/framework/views/desktop/src/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { ViteSSG } from 'vite-ssg'
22
import { setupLayouts } from 'virtual:generated-layouts'
3-
import { routes } from 'vue-router/auto/routes'
3+
import { routes } from 'vue-router/auto-routes'
44
import '@unocss/reset/tailwind.css'
55
import '../../../../../resources/assets/styles/main.css'
66
import { createPinia } from 'pinia'

storage/framework/views/web/src/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { ViteSSG } from 'vite-ssg'
22
import { setupLayouts } from 'virtual:generated-layouts'
3-
import { routes } from 'vue-router/auto/routes'
3+
import { routes } from 'vue-router/auto-routes'
44
import { resourcesPath } from '@stacksjs/path'
55
import App from './App.stx'
66
import type { UserModule } from './types'

0 commit comments

Comments
 (0)