diff --git a/package-lock.json b/package-lock.json index 81ab15b5..994cf625 100644 --- a/package-lock.json +++ b/package-lock.json @@ -35443,7 +35443,7 @@ "dev": true, "license": "MIT" }, - "node_modules/Noodl-Editor": { + "node_modules/noodl-editor": { "resolved": "packages/noodl-editor", "link": true }, @@ -48967,7 +48967,6 @@ "dev": true }, "packages/noodl-editor": { - "name": "Noodl-Editor", "version": "1.0.1", "dependencies": { "@electron/remote": "^2.1.1", @@ -80984,7 +80983,7 @@ "version": "2.0.10", "dev": true }, - "Noodl-Editor": { + "noodl-editor": { "version": "file:packages/noodl-editor", "requires": { "@babel/core": "^7.19.1", diff --git a/package.json b/package.json index f0b8ac1c..4106b0fe 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,7 @@ "graph": "npx nx graph", "ci:prepare:editor": "ts-node ./scripts/ci-editor-prepare.ts", "ci:build:viewer": "lerna exec --scope @noodl/noodl-viewer-react -- npm run build", - "ci:build:editor": "lerna exec --scope Noodl-Editor -- npm run ci:build", + "ci:build:editor": "lerna exec --scope noodl-editor -- npm run ci:build", "build:editor": "ts-node ./scripts/build-editor.ts", "build:editor:_viewer": "ts-node ./scripts/noodl-editor/build-viewer.ts", "build:editor:_editor": "ts-node ./scripts/noodl-editor/build-editor.ts", @@ -20,7 +20,7 @@ "build:cloud-runtime": "lerna run build --scope @noodl/cloud-runtime --stream && lerna run build:pack --scope @noodl/cloud-runtime --stream", "start:storybook": "lerna exec --scope @noodl/noodl-core-ui -- npm run start", "start:viewer": "lerna run start --scope @noodl/noodl-viewer-react --stream", - "start:editor": "lerna run start --scope Noodl-Editor --stream", + "start:editor": "lerna run start --scope noodl-editor --stream", "dev": "ts-node ./scripts/start.ts", "start": "ts-node ./scripts/start.ts -- --build-viewer", "test:editor": "ts-node ./scripts/test-editor.ts", diff --git a/packages/noodl-editor/package.json b/packages/noodl-editor/package.json index 5acd25e6..3f9ec4b6 100644 --- a/packages/noodl-editor/package.json +++ b/packages/noodl-editor/package.json @@ -1,5 +1,5 @@ { - "name": "Noodl-Editor", + "name": "noodl-editor", "productName": "Noodl Editor", "description": "Low-code for when experience matter", "author": "Noodl ", diff --git a/packages/noodl-editor/src/editor/src/pages/AppRoute.ts b/packages/noodl-editor/src/editor/src/pages/AppRoute.ts index 2c0b1c4c..00da5846 100644 --- a/packages/noodl-editor/src/editor/src/pages/AppRoute.ts +++ b/packages/noodl-editor/src/editor/src/pages/AppRoute.ts @@ -1,4 +1,4 @@ -import { AppRouter } from "Noodl-Editor/src/editor/src/pages/AppRouter"; +import { AppRouter } from "noodl-editor/src/editor/src/pages/AppRouter"; export class AppRoute { constructor(public readonly router: AppRouter) {} diff --git a/scripts/noodl-editor/build-editor.ts b/scripts/noodl-editor/build-editor.ts index 4f386da0..778bfcb6 100644 --- a/scripts/noodl-editor/build-editor.ts +++ b/scripts/noodl-editor/build-editor.ts @@ -70,10 +70,10 @@ import { getCurrentPlatform } from '../helper'; // NOTE: Getting error "Cannot set properties of null (setting 'dev')" here, // It basically means that some package is not relative to this path. console.log("--- Run 'npm install' ..."); - execSync(`npm install --arch=${arch} --scope Noodl-Editor`, { + execSync(`npm install --arch=${arch} --scope noodl-editor`, { stdio: 'inherit', env: process.env - }); + }) console.log("--- 'npm install' done!"); // NOTE: npm install --arch= does this too @@ -89,7 +89,7 @@ import { getCurrentPlatform } from '../helper'; // Build: Replace "dugite" // Build: Replace "desktop-trampoline" console.log("--- Run 'npm run build' ..."); - execSync('npx lerna exec --scope Noodl-Editor -- npm run build', { + execSync('npx lerna exec --scope noodl-editor -- npm run build', { stdio: 'inherit', env: { ...process.env, diff --git a/scripts/start.ts b/scripts/start.ts index 3a4f550d..a010a1f3 100644 --- a/scripts/start.ts +++ b/scripts/start.ts @@ -74,7 +74,7 @@ const cloudRuntimeProcess = attachStdio( } ); -const editorProcess = attachStdio(exec('npx lerna exec --scope Noodl-Editor -- npm run start', processOptions), { +const editorProcess = attachStdio(exec('npx lerna exec --scope noodl-editor -- npm run start', processOptions), { prefix: 'Editor', color: ConsoleColor.FgCyan }); diff --git a/scripts/test-editor.ts b/scripts/test-editor.ts index 992eb007..4170cac3 100644 --- a/scripts/test-editor.ts +++ b/scripts/test-editor.ts @@ -25,7 +25,7 @@ console.log( ); console.log("---"); -execSync("npx lerna exec --scope Noodl-Editor -- npm run test", { +execSync("npx lerna exec --scope noodl-editor -- npm run test", { cwd: CWD, stdio: "inherit", env: {