Skip to content

Commit d25edc8

Browse files
committed
add script to start project runner
1 parent 0d1f971 commit d25edc8

File tree

3 files changed

+18
-1
lines changed

3 files changed

+18
-1
lines changed

src/packages/pnpm-lock.yaml

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/usr/bin/env node
2+
3+
const { init } = require("@cocalc/project-runner/run");
4+
5+
(async () => {
6+
console.log("Starting...");
7+
await init();
8+
console.log("CoCalc Project Runner ready");
9+
})();

src/packages/project-runner/package.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,11 @@
1010
"build": "pnpm exec tsc --build",
1111
"tsc": "pnpm exec tsc --pretty --preserveWatchOutput",
1212
"depcheck": "pnpx depcheck",
13-
"clean": "rm -rf node_modules dist"
13+
"clean": "rm -rf node_modules dist",
14+
"start": "pnpm exec cocalc-project-runner"
15+
},
16+
"bin": {
17+
"cocalc-project-runner": "./bin/start.js"
1418
},
1519
"files": ["dist/**", "README.md", "package.json"],
1620
"author": "SageMath, Inc.",
@@ -20,6 +24,7 @@
2024
"@cocalc/backend": "workspace:*",
2125
"@cocalc/conat": "workspace:*",
2226
"@cocalc/util": "workspace:*",
27+
"@cocalc/project-runner": "workspace:*",
2328
"package-directory": "^8.1.0"
2429
},
2530
"devDependencies": {

0 commit comments

Comments
 (0)