From 99c2b414e75fe91036e54ad17f4a3e40d7ad221e Mon Sep 17 00:00:00 2001 From: stevenhuyn Date: Thu, 27 Apr 2023 18:12:23 -0700 Subject: [PATCH] Fix error --- app/src/components/cubeway-simulation.ts | 2 +- package.json | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/src/components/cubeway-simulation.ts b/app/src/components/cubeway-simulation.ts index fe61b57..595aa3e 100644 --- a/app/src/components/cubeway-simulation.ts +++ b/app/src/components/cubeway-simulation.ts @@ -2,7 +2,7 @@ import { LitElement, css, html } from "lit"; import { customElement, property } from "lit/decorators.js"; import litLogo from "../assets/lit.svg"; import viteLogo from "/vite.svg"; -import init, { greet, run } from "../../../cubeway/pkg/cubeway"; +import init from "../../../cubeway/pkg/cubeway"; /** * An example element. diff --git a/package.json b/package.json index a8fba5b..88c5e30 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,8 @@ "name": "web-cubeway", "version": "1.0.0", "scripts": { - "dev": "concurrently \"cd cubeway && cargo watch -- wasm-pack build --target web\" \"cd app && npm run dev\"" + "dev": "concurrently \"cd cubeway && cargo watch -- wasm-pack build --target web\" \"cd app && npm run dev\"", + "build": "concurrently \"cd cubeway && wasm-pack build --target web\" \"cd app && npm run build\"" }, "keywords": [], "author": "",