Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 13 additions & 10 deletions deno.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -30,17 +30,20 @@
"@cliffy/command": "jsr:@cliffy/command@1.0.0-rc.7",
"@cliffy/testing": "jsr:@cliffy/testing@1.0.0-rc.7",
"@david/dax": "jsr:@david/dax@0.42.0",
"@rebeccastevens/deepmerge": "jsr:@rebeccastevens/deepmerge@^7.1.5",
"@std/assert": "jsr:@std/assert@^1.0.8",
"@std/dotenv": "jsr:@std/dotenv@^0.225.3",
"@std/fmt": "jsr:@std/fmt@^1.0.6",
"@std/jsonc": "jsr:@std/jsonc@^1.0.1",
"@std/path": "jsr:@std/path@^1.0.8",
"@std/streams": "jsr:@std/streams@^1.0.9",
"@std/testing": "jsr:@std/testing@^1.0.5",
"@luca/esbuild-deno-loader": "jsr:@luca/esbuild-deno-loader@0.11.1",
"@rebeccastevens/deepmerge": "jsr:@rebeccastevens/deepmerge@7.1.5",
"@std/assert": "jsr:@std/assert@1.0.12",
"@std/dotenv": "jsr:@std/dotenv@0.225.3",
"@std/fmt": "jsr:@std/fmt@1.0.6",
"@std/fs": "jsr:@std/fs@^1.0.16",
"@std/jsonc": "jsr:@std/jsonc@1.0.1",
"@std/path": "jsr:@std/path@1.0.8",
"@std/streams": "jsr:@std/streams@1.0.9",
"@std/testing": "jsr:@std/testing@1.0.11",
"esbuild": "npm:esbuild@0.25.2",
"ueblueprint":"npm:ueblueprint@2.0.0",
"zod": "npm:zod@3.23.8",
"zod-to-json-schema": "npm:zod-to-json-schema@3.23.5",
"zod": "npm:zod@3.24.2",
"zod-to-json-schema": "npm:zod-to-json-schema@3.24.5",
"ndjson": "https://deno.land/x/ndjson@1.1.0/mod.ts",
"ulid": "https://deno.land/x/ulid@v0.3.0/mod.ts",
"xml2js": "https://deno.land/x/xml2js@1.0.0/mod.ts",
Expand Down
156 changes: 135 additions & 21 deletions deno.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions src/commands/buildgraph/run.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,17 +62,17 @@ function generateMarkdownReport(logs: AutomationToolLogs[]): string {
for (const log of groupLogs) {
markdown += `#### Error: ${log.message}\n`

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

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

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

Expand Down
2 changes: 1 addition & 1 deletion src/commands/pkg.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Command, EnumType, ValidationError } from '@cliffy/command'
import { createEngine, Engine, EngineConfiguration, EnginePlatform, EngineTarget } from '../lib/engine.ts'
import { findProjectFile } from '../lib/utils.ts'
import { Config } from '../lib/config.ts'
import type { CliOptions, GlobalOptions } from '../lib/types.ts'
import type { GlobalOptions } from '../lib/types.ts'

const defaultBCRArgs = [
'-build',
Expand Down
4 changes: 2 additions & 2 deletions src/commands/script.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import * as path from '@std/path'
import type { GlobalOptions, Script, ScriptContext } from '../lib/types.ts'
import { logger } from '../lib/logger.ts'

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

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

export const script = new Command<GlobalOptions>()
Expand Down
8 changes: 4 additions & 4 deletions src/commands/uasset/extract-eventgraph.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import { Command } from '@cliffy/command'
import type { GlobalOptions } from '../../lib/types.ts'
import { generateBlueprintHtml } from '../../lib/utils.ts'
import { logger } from '../../lib/logger.ts'
import * as path from 'jsr:@std/path'
import * as fs from 'jsr:@std/fs'
import * as path from '@std/path'
import * as fs from '@std/fs'

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

Expand Down Expand Up @@ -108,7 +108,7 @@ export const extractEventGraph = new Command<GlobalOptions>()
try {
const isDirectory = await fs.exists(options.input, { isDirectory: true })
if (isDirectory) {
const files = await Deno.readDir(options.input)
const files = Deno.readDir(options.input)
for await (const file of files) {
if (file.isFile) {
await extractEventGraphFromFile(path.join(options.input, file.name), options.render)
Expand Down
4 changes: 2 additions & 2 deletions src/commands/uasset/parse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ function parseBlueprint(fileContent: string) {
let complexValue = value
while (!complexValue.endsWith(')') && i < lines.length - 1) {
i++
complexValue += ' ' + lines[i].trim()
complexValue += ` ${lines[i].trim()}`
}
currentObject.properties[key] = parseComplexProperty(complexValue)
} else if (value.startsWith('(')) {
Expand All @@ -118,7 +118,7 @@ function parseBlueprint(fileContent: string) {
const arrayMatch = key.match(/([^\(]+)\((\d+)\)/)
if (arrayMatch) {
const arrayName = arrayMatch[1]
const arrayIndex = parseInt(arrayMatch[2])
const arrayIndex = Number.parseInt(arrayMatch[2])

if (!currentObject.properties[arrayName]) {
currentObject.properties[arrayName] = []
Expand Down
6 changes: 3 additions & 3 deletions src/lib/types.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Command } from '@cliffy/command'
import * as path from '@std/path'
import { $ } from '@david/dax'
import type { Command } from '@cliffy/command'
import type * as path from '@std/path'
Copy link

Copilot AI Apr 14, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TypeScript does not support type-only namespace imports. Remove the 'type' keyword or refactor the import to use named type-only imports if only types are needed.

Suggested change
import type * as path from '@std/path'
import * as path from '@std/path'
import type { PathLike, ParsedPath } from '@std/path'

Copilot uses AI. Check for mistakes.
import type { $ } from '@david/dax'
import type { z } from 'zod'
import type { cmd } from '../cmd.ts'

Expand Down