Skip to content

Commit 7da65b0

Browse files
fix: remove import map, deno install workaround
1 parent 54095c6 commit 7da65b0

30 files changed

+103
-115
lines changed

deno.jsonc

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,12 @@
11
{
2-
"imports": {
3-
"/": "./src/",
4-
"./": "./",
5-
"std/": "https://deno.land/std@0.204.0/"
6-
},
72
"tasks": {
83
"start": "deno run -A --watch=src src/index.ts",
94
"run": "deno run -A src/index.ts",
5+
"install": "deno install -A --force --global --name runreal src/index.ts",
106
"compile-win": "deno compile -A --target x86_64-pc-windows-msvc --output build/runreal-win-x64 src/index.ts",
117
"compile-linux": "deno compile -A --target x86_64-unknown-linux-gnu --output build/runreal-linux-x64 src/index.ts",
128
"compile-macos": "deno compile -A --target aarch64-apple-darwin --output build/runreal-macos-arm src/index.ts",
139
"generate-schema": "deno run -A src/generate-schema.ts",
14-
"install": "deno install -A --force --name runreal --import-map import-map.json src/index.ts"
1510
},
1611
"lint": {
1712
"include": ["src/"],

import-map.json

Lines changed: 0 additions & 7 deletions
This file was deleted.

src/commands/build.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
import { Command, EnumType, ValidationError } from '/deps.ts'
1+
import { Command, EnumType, ValidationError } from '../deps.ts'
22

3-
import { createEngine, Engine, EngineConfiguration, EnginePlatform, EngineTarget } from '/lib/engine.ts'
4-
import { findProjectFile, getProjectName } from '/lib/utils.ts'
5-
import { GlobalOptions } from '/index.ts'
6-
import { config } from '/lib/config.ts'
7-
import { CliOptions } from '/lib/types.ts'
3+
import { createEngine, Engine, EngineConfiguration, EnginePlatform, EngineTarget } from '../lib/engine.ts'
4+
import { findProjectFile, getProjectName } from '../lib/utils.ts'
5+
import { GlobalOptions } from '../index.ts'
6+
import { config } from '../lib/config.ts'
7+
import { CliOptions } from '../lib/types.ts'
88

99
const TargetError = (target: string, targets: string[]) => {
1010
return new ValidationError(`Invalid Target: ${target}

src/commands/buildgraph/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { Command } from '/deps.ts'
1+
import { Command } from '../../deps.ts'
22

3-
import { GlobalOptions } from '/index.ts'
3+
import { GlobalOptions } from '../../index.ts'
44
import { run } from './run.ts'
55

66
export const buildgraph = new Command<GlobalOptions>()

src/commands/buildgraph/run.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import { Command, path, readNdjson } from '/deps.ts'
2-
import { config } from '/lib/config.ts'
3-
import { GlobalOptions } from '/index.ts'
4-
import { CliOptions } from '/lib/types.ts'
5-
import { createEngine } from '/lib/engine.ts'
1+
import { Command, path, readNdjson } from '../../deps.ts'
2+
import { config } from '../../lib/config.ts'
3+
import { GlobalOptions } from '../../index.ts'
4+
import { CliOptions } from '../../lib/types.ts'
5+
import { createEngine } from '../../lib/engine.ts'
66

77
export type RunOptions = typeof run extends Command<any, any, infer Options, any, any> ? Options
88
: never

src/commands/clean.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { Engine } from '/lib/engine.ts'
2-
import { Command } from '/deps.ts'
1+
import { Engine } from '../lib/engine.ts'
2+
import { Command } from '../deps.ts'
33

44
export const clean = new Command()
55
.option('--dry-run', 'Dry run', { default: false })

src/commands/debug.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import { Command, ulid } from '/deps.ts'
2-
import { config } from '/lib/config.ts'
3-
import { GlobalOptions } from '/index.ts'
4-
import { CliOptions } from '/lib/types.ts'
5-
import { logger } from '/lib/logger.ts'
1+
import { Command, ulid } from '../deps.ts'
2+
import { config } from '../lib/config.ts'
3+
import { GlobalOptions } from '../index.ts'
4+
import { CliOptions } from '../lib/types.ts'
5+
import { logger } from '../lib/logger.ts'
66

77
interface SessionMetadata {
88
id: string

src/commands/engine/cache.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import { Command, path } from '/deps.ts'
2-
import { GlobalOptions } from '/index.ts'
3-
import { exec, execSync, getGitDepsList, getGitIgnoreList } from '/lib/utils.ts'
4-
import { CliOptions } from '/lib/types.ts'
5-
import { config } from '/lib/config.ts'
1+
import { Command, path } from '../../deps.ts'
2+
import { GlobalOptions } from '../../index.ts'
3+
import { exec, execSync, getGitDepsList, getGitIgnoreList } from '../../lib/utils.ts'
4+
import { CliOptions } from '../../lib/types.ts'
5+
import { config } from '../../lib/config.ts'
66

77
export type CacheOptions = typeof cache extends Command<any, any, infer Options, any, any> ? Options
88
: never

src/commands/engine/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { Command } from '/deps.ts'
1+
import { Command } from '../../deps.ts'
22

3-
import { GlobalOptions } from '/index.ts'
3+
import { GlobalOptions } from '../../index.ts'
44
import { install } from './install.ts'
55
import { update } from './update.ts'
66
import { cache } from './cache.ts'

src/commands/engine/install.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import { Command, ValidationError } from '/deps.ts'
2-
import { cloneRepo, runEngineSetup } from '/lib/utils.ts'
3-
import { CliOptions } from '/lib/types.ts'
4-
import { config } from '/lib/config.ts'
1+
import { Command, ValidationError } from '../../deps.ts'
2+
import { cloneRepo, runEngineSetup } from '../../lib/utils.ts'
3+
import { CliOptions } from '../../lib/types.ts'
4+
import { config } from '../../lib/config.ts'
55

66
export type InstallOptions = typeof install extends Command<any, any, infer Options, any, any> ? Options
77
: never

0 commit comments

Comments
 (0)