Skip to content

Commit 4233b41

Browse files
committed
Feature(compiler): Use RUNTIME_DEFINITION_FILE from runtime to fix path issue
1 parent 5f91c40 commit 4233b41

5 files changed

Lines changed: 20 additions & 13 deletions

File tree

package-lock.json

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

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"commander": "^2.19.0"
2424
},
2525
"dependencies": {
26-
"@static-script/runtime": "^0.1.0",
26+
"@static-script/runtime": "^0.2.0",
2727
"llvm-node": "github:MichaReiser/llvm-node#master",
2828
"typescript": "^3.1.1"
2929
}

packages/hello-world/package-lock.json

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

packages/hello-world/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@
99
"author": "Dmitry Patsura <talk@dmtry.me>",
1010
"license": "MIT",
1111
"devDependencies": {
12-
"static-script": "^0.2.0"
12+
"static-script": "^0.4.0"
1313
}
1414
}

src/cli.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import * as ts from 'typescript';
33
import * as path from 'path';
44
import * as llvm from 'llvm-node';
55
import * as cli from "commander";
6-
import {RUNTIME_ARCHIVE_FILE} from "@static-script/runtime";
6+
import {RUNTIME_ARCHIVE_FILE, RUNTIME_DEFINITION_FILE} from "@static-script/runtime";
77

88
import {initializeLLVM, generateModuleFromProgram} from './backend/llvm';
99
import DiagnosticHostInstance from "./diagnostic.host";
@@ -31,7 +31,7 @@ const cliOptions = parseCommandLine();
3131

3232
const options = {
3333
lib: [
34-
path.join(__dirname, '..', 'packages', 'runtime', 'lib.runtime.d.ts'),
34+
RUNTIME_DEFINITION_FILE,
3535
path.join(__dirname, '..', 'staticscript.d.ts')
3636
],
3737
types: []

0 commit comments

Comments
 (0)