Skip to content

Commit 028e2f1

Browse files
chore: wip
1 parent 0b486ba commit 028e2f1

File tree

30 files changed

+31
-31
lines changed

30 files changed

+31
-31
lines changed

app/Actions/Dashboard/Models/GetModels.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type { Model } from '@stacksjs/types'
2-
import { Glob } from 'bun'
32
import { Action } from '@stacksjs/actions'
43
import { path } from '@stacksjs/path'
4+
import { Glob } from 'bun'
55

66
export default new Action({
77
name: 'GetModels',

storage/framework/core/actions/src/build/cli.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { $ } from 'bun'
21
import { log } from '@stacksjs/cli'
32
import { buddyPath } from '@stacksjs/path'
3+
import { $ } from 'bun'
44

55
log.info('Building CLI...')
66

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
import { $ } from 'bun'
21
import process from 'node:process'
32
import { dim, italic, log } from '@stacksjs/cli'
43
import { corePath } from '@stacksjs/path'
54
import { glob } from '@stacksjs/storage'
65
import { ExitCode } from '@stacksjs/types'
6+
import { $ } from 'bun'
77

88
log.info('Building core packages')
99

storage/framework/core/actions/src/build/server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { $ } from 'bun'
21
import { log } from '@stacksjs/cli'
32
import { frameworkPath } from '@stacksjs/path'
3+
import { $ } from 'bun'
44

55
log.info('Building Server...')
66

storage/framework/core/actions/src/check/ports.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import { $ } from 'bun'
21
import process from 'node:process'
32
import { log } from '@stacksjs/logging'
43
import { findStacksProjects } from '@stacksjs/utils'
4+
import { $ } from 'bun'
55

66
const projects = await findStacksProjects(undefined, { quiet: true })
77

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
import { $ } from 'bun'
21
import process from 'node:process'
32
import { italic, runCommand } from '@stacksjs/cli'
43
import { log } from '@stacksjs/logging'
54
import { path as p } from '@stacksjs/path'
65
import { writeFile } from '@stacksjs/storage'
76
import { ExitCode } from '@stacksjs/types'
7+
import { $ } from 'bun'
88

99
const homePath = (await $`echo $HOME`.text()).trim()
1010
const zshrcPath = p.join(homePath, '.zshrc')

storage/framework/core/actions/tests/ai.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { describe, expect, it, mock } from 'bun:test'
21
import { requestModelAccess } from '@stacksjs/ai'
32
import { ai } from '@stacksjs/config'
3+
import { describe, expect, it, mock } from 'bun:test'
44

55
describe('requestModelAccess', () => {
66
it('should request access to AI models', async () => {

storage/framework/core/ai/tests/ai.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { afterEach, beforeEach, describe, expect, it, mock, spyOn } from 'bun:test'
21
import {
32
BedrockClient,
43
CreateModelCustomizationJobCommand,
@@ -8,6 +7,7 @@ import {
87
import { log } from '@stacksjs/cli'
98
import { ai } from '@stacksjs/config'
109
import { mockClient } from 'aws-sdk-client-mock'
10+
import { afterEach, beforeEach, describe, expect, it, mock, spyOn } from 'bun:test'
1111
import {
1212
createModelCustomizationJob,
1313
getModelCustomizationJob,

storage/framework/core/alias/tests/alias.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { describe, expect, it } from 'bun:test'
21
import fs from 'node:fs'
32
import path from 'node:path'
3+
import { describe, expect, it } from 'bun:test'
44
import { alias } from '../src/index'
55

66
describe('@stacksjs/alias', () => {

storage/framework/core/buddy/bin/cli.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import { $ } from 'bun'
21
import { existsSync, readdirSync, statSync } from 'node:fs'
32
import { join } from 'node:path'
43
import process from 'node:process'
4+
import { $ } from 'bun'
55
import { cac } from 'cac'
66
import { version } from '../package.json'
77

storage/framework/core/buddy/src/commands/deploy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import type { CLI, DeployOptions } from '@stacksjs/types'
2-
import { $ } from 'bun'
32
import process from 'node:process'
43
import { runAction } from '@stacksjs/actions'
54
import { intro, italic, log, outro, prompts, runCommand } from '@stacksjs/cli'
@@ -8,6 +7,7 @@ import { addDomain, hasUserDomainBeenAddedToCloud } from '@stacksjs/dns'
87
import { Action } from '@stacksjs/enums'
98
import { path as p } from '@stacksjs/path'
109
import { ExitCode } from '@stacksjs/types'
10+
import { $ } from 'bun'
1111

1212
export function deploy(buddy: CLI): void {
1313
const descriptions = {

storage/framework/core/buddy/src/commands/list.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import type { CLI, CliOptions } from '@stacksjs/types'
2-
import { $ } from 'bun'
32
import process from 'node:process'
43
import { log } from '@stacksjs/logging'
54
import { projectPath } from '@stacksjs/path'
5+
import { $ } from 'bun'
66

77
export function list(buddy: CLI): void {
88
const descriptions = {

storage/framework/core/buddy/src/commands/outdated.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import type { CLI, CliOptions } from '@stacksjs/types'
2-
import { $ } from 'bun'
32
import process from 'node:process'
43
import { log } from '@stacksjs/logging'
54
import { projectPath } from '@stacksjs/path'
5+
import { $ } from 'bun'
66

77
export function outdated(buddy: CLI): void {
88
const descriptions = {

storage/framework/core/buddy/src/commands/ports.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import type { CLI, Ports, PortsOptions } from '@stacksjs/types'
2-
import { $ } from 'bun'
32
import process from 'node:process'
43
import { intro, italic, outro } from '@stacksjs/cli'
54
import { ports as projectPorts } from '@stacksjs/config'
65
import { log } from '@stacksjs/logging'
76
import { findProjectPath, path as p, projectPath } from '@stacksjs/path'
87
import { ExitCode } from '@stacksjs/types'
98
import { findStacksProjects } from '@stacksjs/utils'
9+
import { $ } from 'bun'
1010

1111
export function ports(buddy: CLI): void {
1212
const descriptions = {

storage/framework/core/cache/tests/DynamoDB.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { afterAll, afterEach, beforeAll, describe, expect, it } from 'bun:test'
2-
31
import { deleteStacksTable, launchServer } from '@stacksjs/testing'
2+
3+
import { afterAll, afterEach, beforeAll, describe, expect, it } from 'bun:test'
44
import { dynamodb } from '../src/drivers/dynamodb'
55

66
beforeAll(async () => {

storage/framework/core/cli/tests/cli.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { afterEach, describe, expect, it, mock, spyOn } from 'bun:test'
21
import { log } from '@stacksjs/logging'
32
import { ExitCode } from '@stacksjs/types'
3+
import { afterEach, describe, expect, it, mock, spyOn } from 'bun:test'
44
import { CAC } from 'cac'
55
import {
66
buddyOptions,

storage/framework/core/components/calendar/src/components/Expand.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ async function handleCopyCode() {
6565
Default
6666
</button>
6767
</div>
68-
<div class="code-block group relative">
68+
<div class="group code-block relative">
6969
<Highlight
7070
language="javascript"
7171
class-name="rounded-md text-xs"

storage/framework/core/database/src/migrations.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
import { $ } from 'bun'
21
import { log } from '@stacksjs/cli'
32
import { database } from '@stacksjs/config'
43
import { type Err, err, handleError, type Ok, ok, type Result } from '@stacksjs/error-handling'
54
import { path } from '@stacksjs/path'
65
import { fs, globSync } from '@stacksjs/storage'
6+
import { $ } from 'bun'
77
import { FileMigrationProvider, type MigrationResult, Migrator } from 'kysely'
88
import { generateMysqlMigration, generatePostgresMigration, generateSqliteMigration, resetMysqlDatabase, resetPostgresDatabase, resetSqliteDatabase } from './drivers'
99
import { db } from './utils'

storage/framework/core/error-handling/tests/error-handling.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { afterAll, beforeAll, describe, expect, it, mock, spyOn } from 'bun:test'
21
import { italic } from '@stacksjs/cli'
2+
import { afterAll, beforeAll, describe, expect, it, mock, spyOn } from 'bun:test'
33
import fs from 'fs-extra'
44
import { ErrorHandler, handleError } from '../src/handler'
55
import { rescue } from '../src/utils'

storage/framework/core/orm/src/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1268,7 +1268,7 @@ export async function generateModelString(
12681268
const model = await query.executeTakeFirst()
12691269
12701270
if (!model)
1271-
throw(\`No model results found for \${id}\ \`)
1271+
throw new Error(\`No model results found for \${id}\ \`)
12721272
12731273
cache.getOrSet(\`${formattedModelName}:\${id}\`, JSON.stringify(model))
12741274

storage/framework/orm/src/models/AccessToken.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ export class AccessTokenModel {
142142
const model = await query.executeTakeFirst()
143143

144144
if (!model)
145-
throw (`No model results found for ${id} `)
145+
throw new Error(`No model results found for ${id} `)
146146

147147
cache.getOrSet(`accesstoken:${id}`, JSON.stringify(model))
148148

storage/framework/orm/src/models/Deployment.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ export class DeploymentModel {
151151
const model = await query.executeTakeFirst()
152152

153153
if (!model)
154-
throw (`No model results found for ${id} `)
154+
throw new Error(`No model results found for ${id} `)
155155

156156
cache.getOrSet(`deployment:${id}`, JSON.stringify(model))
157157

storage/framework/orm/src/models/Post.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ export class PostModel {
136136
const model = await query.executeTakeFirst()
137137

138138
if (!model)
139-
throw (`No model results found for ${id} `)
139+
throw new Error(`No model results found for ${id} `)
140140

141141
cache.getOrSet(`post:${id}`, JSON.stringify(model))
142142

storage/framework/orm/src/models/Project.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ export class ProjectModel {
137137
const model = await query.executeTakeFirst()
138138

139139
if (!model)
140-
throw (`No model results found for ${id} `)
140+
throw new Error(`No model results found for ${id} `)
141141

142142
cache.getOrSet(`project:${id}`, JSON.stringify(model))
143143

storage/framework/orm/src/models/Release.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ export class ReleaseModel {
128128
const model = await query.executeTakeFirst()
129129

130130
if (!model)
131-
throw (`No model results found for ${id} `)
131+
throw new Error(`No model results found for ${id} `)
132132

133133
cache.getOrSet(`release:${id}`, JSON.stringify(model))
134134

storage/framework/orm/src/models/Subscriber.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ export class SubscriberModel {
132132
const model = await query.executeTakeFirst()
133133

134134
if (!model)
135-
throw (`No model results found for ${id} `)
135+
throw new Error(`No model results found for ${id} `)
136136

137137
cache.getOrSet(`subscriber:${id}`, JSON.stringify(model))
138138

storage/framework/orm/src/models/SubscriberEmail.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ export class SubscriberEmailModel {
132132
const model = await query.executeTakeFirst()
133133

134134
if (!model)
135-
throw (`No model results found for ${id} `)
135+
throw new Error(`No model results found for ${id} `)
136136

137137
cache.getOrSet(`subscriberemail:${id}`, JSON.stringify(model))
138138

storage/framework/orm/src/models/Team.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ export class TeamModel {
159159
const model = await query.executeTakeFirst()
160160

161161
if (!model)
162-
throw (`No model results found for ${id} `)
162+
throw new Error(`No model results found for ${id} `)
163163

164164
cache.getOrSet(`team:${id}`, JSON.stringify(model))
165165

storage/framework/orm/src/models/User.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ export class UserModel {
158158
const model = await query.executeTakeFirst()
159159

160160
if (!model)
161-
throw (`No model results found for ${id} `)
161+
throw new Error(`No model results found for ${id} `)
162162

163163
cache.getOrSet(`user:${id}`, JSON.stringify(model))
164164

storage/framework/orm/src/tests/Models.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import type { UserModel } from '../models/User'
2-
import { beforeEach, describe, expect, it } from 'bun:test'
32
import { refreshDatabase } from '@stacksjs/testing'
3+
import { beforeEach, describe, expect, it } from 'bun:test'
44
import User from '../models/User'
55

66
beforeEach(async () => {

0 commit comments

Comments
 (0)