mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-09 19:13:26 +03:00
18 lines
1,001 B
Diff
18 lines
1,001 B
Diff
diff --git a/scripts/workflow/build-routes.ts b/scripts/workflow/build-routes.ts
|
|
index 9807cfc..b9dcfb9 100644
|
|
--- a/scripts/workflow/build-routes.ts
|
|
+++ b/scripts/workflow/build-routes.ts
|
|
@@ -4,6 +4,7 @@ import { parse } from 'tldts';
|
|
import fs from 'node:fs';
|
|
import path from 'node:path';
|
|
import toSource from 'tosource';
|
|
+import { exit } from 'node:process';
|
|
|
|
import { getCurrentPath } from '../../lib/utils/helpers';
|
|
const __dirname = getCurrentPath(import.meta.url);
|
|
@@ -73,3 +74,5 @@ fs.writeFileSync(path.join(__dirname, '../../assets/build/radar-rules.js'), `(${
|
|
fs.writeFileSync(path.join(__dirname, '../../assets/build/maintainers.json'), JSON.stringify(maintainers, null, 2));
|
|
fs.writeFileSync(path.join(__dirname, '../../assets/build/routes.json'), JSON.stringify(namespaces, null, 2));
|
|
fs.writeFileSync(path.join(__dirname, '../../assets/build/routes.js'), `export default ${JSON.stringify(namespaces, null, 2)}`.replaceAll(/"module": "(.*)"\n/g, `"module": $1\n`));
|
|
+
|
|
+exit(0);
|