Skip to content

Commit 48b6718

Browse files
thibaultleouayrunreal-warman
authored andcommitted
chore: update dep remove hard coded deps
1 parent 4d837ed commit 48b6718

File tree

8 files changed

+162
-45
lines changed

8 files changed

+162
-45
lines changed

deno.jsonc

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -30,17 +30,20 @@
3030
"@cliffy/command": "jsr:@cliffy/command@1.0.0-rc.7",
3131
"@cliffy/testing": "jsr:@cliffy/testing@1.0.0-rc.7",
3232
"@david/dax": "jsr:@david/dax@0.42.0",
33-
"@rebeccastevens/deepmerge": "jsr:@rebeccastevens/deepmerge@^7.1.5",
34-
"@std/assert": "jsr:@std/assert@^1.0.8",
35-
"@std/dotenv": "jsr:@std/dotenv@^0.225.3",
36-
"@std/fmt": "jsr:@std/fmt@^1.0.6",
37-
"@std/jsonc": "jsr:@std/jsonc@^1.0.1",
38-
"@std/path": "jsr:@std/path@^1.0.8",
39-
"@std/streams": "jsr:@std/streams@^1.0.9",
40-
"@std/testing": "jsr:@std/testing@^1.0.5",
33+
"@luca/esbuild-deno-loader": "jsr:@luca/esbuild-deno-loader@0.11.1",
34+
"@rebeccastevens/deepmerge": "jsr:@rebeccastevens/deepmerge@7.1.5",
35+
"@std/assert": "jsr:@std/assert@1.0.12",
36+
"@std/dotenv": "jsr:@std/dotenv@0.225.3",
37+
"@std/fmt": "jsr:@std/fmt@1.0.6",
38+
"@std/fs": "jsr:@std/fs@^1.0.16",
39+
"@std/jsonc": "jsr:@std/jsonc@1.0.1",
40+
"@std/path": "jsr:@std/path@1.0.8",
41+
"@std/streams": "jsr:@std/streams@1.0.9",
42+
"@std/testing": "jsr:@std/testing@1.0.11",
43+
"esbuild": "npm:esbuild@0.25.2",
4144
"ueblueprint":"npm:ueblueprint@2.0.0",
42-
"zod": "npm:zod@3.23.8",
43-
"zod-to-json-schema": "npm:zod-to-json-schema@3.23.5",
45+
"zod": "npm:zod@3.24.2",
46+
"zod-to-json-schema": "npm:zod-to-json-schema@3.24.5",
4447
"ndjson": "https://deno.land/x/ndjson@1.1.0/mod.ts",
4548
"ulid": "https://deno.land/x/ulid@v0.3.0/mod.ts",
4649
"xml2js": "https://deno.land/x/xml2js@1.0.0/mod.ts",

deno.lock

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

src/commands/buildgraph/run.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,17 +62,17 @@ function generateMarkdownReport(logs: AutomationToolLogs[]): string {
6262
for (const log of groupLogs) {
6363
markdown += `#### Error: ${log.message}\n`
6464

65-
if (log.properties && log.properties.file) {
65+
if (log.properties?.file) {
6666
const file = log.properties.file.$text
6767
const line = log.properties.line?.$text || log.line
6868
markdown += `- **File**: ${file}${line ? `:${line}` : ''}\n`
6969
}
7070

71-
if (log.properties && log.properties.code) {
71+
if (log.properties?.code) {
7272
markdown += `- **Code**: ${log.properties.code.$text}\n`
7373
}
7474

75-
if (log.properties && log.properties.severity) {
75+
if (log.properties?.severity) {
7676
markdown += `- **Severity**: ${log.properties.severity.$text}\n`
7777
}
7878

src/commands/pkg.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { Command, EnumType, ValidationError } from '@cliffy/command'
22
import { createEngine, Engine, EngineConfiguration, EnginePlatform, EngineTarget } from '../lib/engine.ts'
33
import { findProjectFile } from '../lib/utils.ts'
44
import { Config } from '../lib/config.ts'
5-
import type { CliOptions, GlobalOptions } from '../lib/types.ts'
5+
import type { GlobalOptions } from '../lib/types.ts'
66

77
const defaultBCRArgs = [
88
'-build',

src/commands/script.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ import * as path from '@std/path'
44
import type { GlobalOptions, Script, ScriptContext } from '../lib/types.ts'
55
import { logger } from '../lib/logger.ts'
66

7-
import * as esbuild from 'https://deno.land/x/esbuild@v0.24.0/mod.js'
7+
import * as esbuild from 'esbuild'
88

9-
import { denoPlugins } from 'jsr:@luca/esbuild-deno-loader@0.11.1'
9+
import { denoPlugins } from '@luca/esbuild-deno-loader'
1010
import { Config } from '../lib/config.ts'
1111

1212
export const script = new Command<GlobalOptions>()

src/commands/uasset/extract-eventgraph.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import { Command } from '@cliffy/command'
22
import type { GlobalOptions } from '../../lib/types.ts'
33
import { generateBlueprintHtml } from '../../lib/utils.ts'
44
import { logger } from '../../lib/logger.ts'
5-
import * as path from 'jsr:@std/path'
6-
import * as fs from 'jsr:@std/fs'
5+
import * as path from '@std/path'
6+
import * as fs from '@std/fs'
77

88
export type ExtractEventGraphOptions = typeof extractEventGraph extends
99
Command<void, void, infer Options extends Record<string, unknown>, [], GlobalOptions> ? Options
@@ -66,7 +66,7 @@ function findEventGraph(fileContent: string): string | null {
6666
if (
6767
insideEventGraph && insideBeginObjectBlock && !line.startsWith('Begin Object') && !line.startsWith('End Object')
6868
) {
69-
eventGraphNodes.push(' ' + line)
69+
eventGraphNodes.push(` ${line}`)
7070
continue
7171
}
7272

@@ -108,7 +108,7 @@ export const extractEventGraph = new Command<GlobalOptions>()
108108
try {
109109
const isDirectory = await fs.exists(options.input, { isDirectory: true })
110110
if (isDirectory) {
111-
const files = await Deno.readDir(options.input)
111+
const files = Deno.readDir(options.input)
112112
for await (const file of files) {
113113
if (file.isFile) {
114114
await extractEventGraphFromFile(path.join(options.input, file.name), options.render)

src/commands/uasset/parse.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ function parseBlueprint(fileContent: string) {
118118
const arrayMatch = key.match(/([^\(]+)\((\d+)\)/)
119119
if (arrayMatch) {
120120
const arrayName = arrayMatch[1]
121-
const arrayIndex = parseInt(arrayMatch[2])
121+
const arrayIndex = Number.parseInt(arrayMatch[2])
122122

123123
if (!currentObject.properties[arrayName]) {
124124
currentObject.properties[arrayName] = []

src/lib/types.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { Command } from '@cliffy/command'
2-
import * as path from '@std/path'
3-
import { $ } from '@david/dax'
1+
import type { Command } from '@cliffy/command'
2+
import type * as path from '@std/path'
3+
import type { $ } from '@david/dax'
44
import type { z } from 'zod'
55
import type { cmd } from '../cmd.ts'
66

0 commit comments

Comments
 (0)