Skip to content

Commit e410f65

Browse files
committed
Ensure dependencies are built first
1 parent 469d9f8 commit e410f65

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

engine/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"playground-uniform-panel"
99
],
1010
"scripts": {
11-
"build": "npm-run-all --parallel build:*",
11+
"build": "npm run build:shared && npm-run-all --parallel build:slang-compilation-engine build:playground-render-canvas build:playground-uniform-panel",
1212
"build:shared": "npm --prefix ./shared run build",
1313
"build:slang-compilation-engine": "npm --prefix ./slang-compilation-engine run build",
1414
"build:playground-render-canvas": "npm --prefix ./playground-render-canvas run build",

engine/slang-compilation-engine/src/compiler.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
import type { ComponentType, EmbindString, GlobalSession, MainModule, Module, Session } from '../media/slang-wasm.js';
1+
import type { ComponentType, GlobalSession, MainModule, Module, Session } from '../media/slang-wasm.d.ts';
22
import playgroundSource from "./slang/playground.slang?raw";
33
import imageMainSource from "./slang/imageMain.slang?raw";
44
import printMainSource from "./slang/printMain.slang?raw";
55
import { RUNNABLE_ENTRY_POINT_NAMES } from "slang-playground-shared";
66
import type { HashedStringData, ScalarType, ReflectionParameter, ReflectionJSON, Bindings, RunnableShaderType, Shader, Result, CompileRequest, CompileTarget } from 'slang-playground-shared'
7-
import type { SpirvTools } from '../media/spirv-tools.js';
7+
import type { SpirvTools } from '../media/spirv-tools.d.ts';
88
import { ACCESS_MAP, getTextureFormat, webgpuFormatfromSlangFormat } from './compilationUtils.js';
99

1010
export function isWholeProgramTarget(compileTarget: CompileTarget) {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"type": "module",
66
"scripts": {
77
"dev": "vite",
8-
"build": "run-p type-check build-engine \"build-only {@}\" --",
8+
"build": "npm --prefix ./engine run build && run-p type-check build-only",
99
"build-engine": "npm --prefix ./engine run build",
1010
"preview": "vite preview",
1111
"build-only": "vite build",

0 commit comments

Comments
 (0)