Skip to content

Commit

Permalink
chore(demo): move generate-demo-routes-file.ts script to `projects/…
Browse files Browse the repository at this point in the history
…demo` (#1675)
  • Loading branch information
nsbarsukov authored Sep 23, 2024
1 parent ba31a08 commit 6c0cdfa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -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`];
Expand Down
2 changes: 1 addition & 1 deletion projects/demo/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down

0 comments on commit 6c0cdfa

Please sign in to comment.