From 08a9ed568d213b958c40ab2418278d31534c2a36 Mon Sep 17 00:00:00 2001 From: pelikhan Date: Tue, 6 Dec 2022 15:40:03 -0800 Subject: [PATCH] patch: more package renaming --- cli/src/build.ts | 4 ++-- cli/src/devtools.ts | 2 +- cli/src/init.ts | 2 +- compiler/build.js | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/cli/src/build.ts b/cli/src/build.ts index 144f7d7fc1..0f1de3f57b 100644 --- a/cli/src/build.ts +++ b/cli/src/build.ts @@ -16,12 +16,12 @@ import { LogInfo, DEVS_DBG_FILE, prettySize, -} from "devicescript-compiler" +} from "@devicescript/compiler" import { BINDIR, CmdOptions, debug, error, log } from "./command" import { devtools } from "./devtools" function jacsFactory() { - let d = require("devicescript-vm") + let d = require("@devicescript/vm") try { require("websocket-polyfill") // @ts-ignore diff --git a/cli/src/devtools.ts b/cli/src/devtools.ts index a4a266a404..0254d86173 100644 --- a/cli/src/devtools.ts +++ b/cli/src/devtools.ts @@ -7,7 +7,7 @@ import url from "url" import net from "net" import { CmdOptions, debug, error, log } from "./command" import { readFileSync, readJSONSync, watch } from "fs-extra" -import { prettySize } from "devicescript-compiler" +import { prettySize } from "@devicescript/compiler" const dasboardPath = "tools/devicescript-devtools" diff --git a/cli/src/init.ts b/cli/src/init.ts index 65c850c7ed..85ad07b8f0 100644 --- a/cli/src/init.ts +++ b/cli/src/init.ts @@ -9,7 +9,7 @@ import { emptyDirSync, readFileSync, } from "fs-extra" -import { preludeFiles } from "devicescript-compiler" +import { preludeFiles } from "@devicescript/compiler" const TSCONFIG = "tsconfig.json" const MAIN = "main.ts" diff --git a/compiler/build.js b/compiler/build.js index ed678be129..01467086cc 100644 --- a/compiler/build.js +++ b/compiler/build.js @@ -143,7 +143,7 @@ async function main() { sourcemap: true, outfile, logLevel: "warning", - external: ["websocket-polyfill", "devicescript-compiler"], + external: ["websocket-polyfill", "@devicescript/compiler"], platform: cjs ? "node" : "browser", target: "es2019", format: mjs ? "esm" : cjs ? "cjs" : "iife",