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

0 commit comments

Comments
 (0)