[Sandbox] Fix shared importing
This commit is contained in:
parent
0d0d22b730
commit
37a0cd73bc
17
sandbox/package-lock.json
generated
17
sandbox/package-lock.json
generated
@ -13,6 +13,7 @@
|
|||||||
"fs-extra": "^11.2.0",
|
"fs-extra": "^11.2.0",
|
||||||
"rollup": "^4.12.1",
|
"rollup": "^4.12.1",
|
||||||
"simple-git": "^3.22.0",
|
"simple-git": "^3.22.0",
|
||||||
|
"submission-runner": "file:../shared/submission-runner",
|
||||||
"tree-kill": "^1.2.2",
|
"tree-kill": "^1.2.2",
|
||||||
"url-join": "^5.0.0",
|
"url-join": "^5.0.0",
|
||||||
"zod": "^3.22.4"
|
"zod": "^3.22.4"
|
||||||
@ -32,6 +33,18 @@
|
|||||||
"typescript": "^5.4.2"
|
"typescript": "^5.4.2"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"../shared/submission-runner": {
|
||||||
|
"dependencies": {
|
||||||
|
"fs-extra": "^11.2.0",
|
||||||
|
"tree-kill": "^1.2.2",
|
||||||
|
"typescript": "^5.4.2",
|
||||||
|
"zod": "^3.22.4"
|
||||||
|
},
|
||||||
|
"devDependencies": {
|
||||||
|
"@types/fs-extra": "^11.0.4",
|
||||||
|
"@types/node": "20.x"
|
||||||
|
}
|
||||||
|
},
|
||||||
"node_modules/@aashutoshrathi/word-wrap": {
|
"node_modules/@aashutoshrathi/word-wrap": {
|
||||||
"version": "1.2.6",
|
"version": "1.2.6",
|
||||||
"resolved": "https://registry.npmjs.org/@aashutoshrathi/word-wrap/-/word-wrap-1.2.6.tgz",
|
"resolved": "https://registry.npmjs.org/@aashutoshrathi/word-wrap/-/word-wrap-1.2.6.tgz",
|
||||||
@ -2680,6 +2693,10 @@
|
|||||||
"url": "https://github.com/sponsors/sindresorhus"
|
"url": "https://github.com/sponsors/sindresorhus"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/submission-runner": {
|
||||||
|
"resolved": "../shared/submission-runner",
|
||||||
|
"link": true
|
||||||
|
},
|
||||||
"node_modules/supports-color": {
|
"node_modules/supports-color": {
|
||||||
"version": "7.2.0",
|
"version": "7.2.0",
|
||||||
"resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
|
"resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
|
||||||
|
@ -32,6 +32,7 @@
|
|||||||
"fs-extra": "^11.2.0",
|
"fs-extra": "^11.2.0",
|
||||||
"rollup": "^4.12.1",
|
"rollup": "^4.12.1",
|
||||||
"simple-git": "^3.22.0",
|
"simple-git": "^3.22.0",
|
||||||
|
"submission-runner": "file:../shared/submission-runner",
|
||||||
"tree-kill": "^1.2.2",
|
"tree-kill": "^1.2.2",
|
||||||
"url-join": "^5.0.0",
|
"url-join": "^5.0.0",
|
||||||
"zod": "^3.22.4"
|
"zod": "^3.22.4"
|
||||||
|
@ -4,10 +4,10 @@ import urlJoin from 'url-join';
|
|||||||
import os, { EOL } from 'os';
|
import os, { EOL } from 'os';
|
||||||
import { join } from 'path';
|
import { join } from 'path';
|
||||||
import { simpleGit, SimpleGit } from 'simple-git';
|
import { simpleGit, SimpleGit } from 'simple-git';
|
||||||
import { runJava } from '@submissionRunner/java.cjs';
|
import { runJava } from 'submission-runner/java.cjs';
|
||||||
import { runCSharp } from '@submissionRunner/csharp.cjs';
|
import { runCSharp } from 'submission-runner/csharp.cjs';
|
||||||
import { runCpp } from '@submissionRunner/cpp.cjs';
|
import { runCpp } from 'submission-runner/cpp.cjs';
|
||||||
import { RunResult, RunResultZod } from '@submissionRunner/types.cjs';
|
import { RunResult, RunResultZod } from 'submission-runner/types.cjs';
|
||||||
import { z } from 'zod';
|
import { z } from 'zod';
|
||||||
|
|
||||||
const submissionPostData = z
|
const submissionPostData = z
|
||||||
|
@ -5,9 +5,6 @@
|
|||||||
"outDir": "./build",
|
"outDir": "./build",
|
||||||
"esModuleInterop": true,
|
"esModuleInterop": true,
|
||||||
"strict": true,
|
"strict": true,
|
||||||
"paths": {
|
|
||||||
"@submissionRunner/*": ["../shared/submissionRunner/*"]
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"references": [{ "path": "../shared/submissionRunner" }]
|
"include": ["src/**/*.ts"]
|
||||||
}
|
}
|
||||||
|
@ -5,10 +5,7 @@
|
|||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/node": "20.x",
|
"@types/node": "20.x",
|
||||||
"@types/fs-extra": "^11.0.4"
|
"@types/fs-extra": "^11.0.4",
|
||||||
},
|
|
||||||
"dependencies": {
|
|
||||||
"typescript": "^5.4.2",
|
|
||||||
"zod": "^3.22.4",
|
"zod": "^3.22.4",
|
||||||
"tree-kill": "^1.2.2",
|
"tree-kill": "^1.2.2",
|
||||||
"fs-extra": "^11.2.0"
|
"fs-extra": "^11.2.0"
|
||||||
|
Loading…
Reference in New Issue
Block a user