diff --git a/scripts/generate-demo-routes-file.ts b/projects/demo/generate-demo-routes-file.ts similarity index 95% rename from scripts/generate-demo-routes-file.ts rename to projects/demo/generate-demo-routes-file.ts index 51beb0e5c..a76e24260 100644 --- a/scripts/generate-demo-routes-file.ts +++ b/projects/demo/generate-demo-routes-file.ts @@ -1,7 +1,7 @@ import {readFileSync, writeFileSync} from 'node:fs'; import {join} from 'node:path'; -import {DemoPath} from '../projects/demo/src/app/constants/demo-path'; +import {DemoPath} from './src/app/constants/demo-path'; const SMALL_TAB_SYMBOL = ' '; // @note: if you use \t then we have big gaps const EXCEPTIONS = ['/', `${DemoPath.Angular}/Setup`, `${DemoPath.PhonePackage}/API`]; diff --git a/projects/demo/project.json b/projects/demo/project.json index f74868cf4..583454138 100644 --- a/projects/demo/project.json +++ b/projects/demo/project.json @@ -178,7 +178,7 @@ "generate-routes-file": { "executor": "nx:run-commands", "options": { - "command": "ts-node ./scripts/generate-demo-routes-file.ts" + "command": "ts-node {projectRoot}/generate-demo-routes-file.ts" } }, "prerender": {