[Sandbox] Update shared import
This commit is contained in:
parent
0901765707
commit
24c9193211
3
sandbox/.vscode/settings.json
vendored
Normal file
3
sandbox/.vscode/settings.json
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
{
|
||||
"cSpell.words": ["bwcontest"]
|
||||
}
|
27
sandbox/package-lock.json
generated
27
sandbox/package-lock.json
generated
@ -9,11 +9,11 @@
|
||||
"version": "1.0.0",
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
"bwcontest-shared": "file:../shared",
|
||||
"dotenv": "^16.4.5",
|
||||
"fs-extra": "^11.2.0",
|
||||
"rollup": "^4.12.1",
|
||||
"simple-git": "^3.22.0",
|
||||
"submission-runner": "file:../shared/submission-runner",
|
||||
"tree-kill": "^1.2.2",
|
||||
"url-join": "^5.0.0",
|
||||
"zod": "^3.22.4"
|
||||
@ -33,7 +33,24 @@
|
||||
"typescript": "^5.4.2"
|
||||
}
|
||||
},
|
||||
"../shared": {
|
||||
"name": "bwcontest-shared",
|
||||
"devDependencies": {
|
||||
"@types/fs-extra": "^11.0.4",
|
||||
"@types/node": "20.x",
|
||||
"@typescript-eslint/eslint-plugin": "^7.2.0",
|
||||
"@typescript-eslint/parser": "^7.2.0",
|
||||
"esbuild": "^0.20.1",
|
||||
"eslint": "^8.57.0",
|
||||
"fs-extra": "^11.2.0",
|
||||
"prettier": "^3.2.5",
|
||||
"tree-kill": "^1.2.2",
|
||||
"typescript": "^5.4.2",
|
||||
"zod": "^3.22.4"
|
||||
}
|
||||
},
|
||||
"../shared/submission-runner": {
|
||||
"extraneous": true,
|
||||
"dependencies": {
|
||||
"fs-extra": "^11.2.0",
|
||||
"tree-kill": "^1.2.2",
|
||||
@ -1336,6 +1353,10 @@
|
||||
"url": "https://github.com/sponsors/sindresorhus"
|
||||
}
|
||||
},
|
||||
"node_modules/bwcontest-shared": {
|
||||
"resolved": "../shared",
|
||||
"link": true
|
||||
},
|
||||
"node_modules/callsites": {
|
||||
"version": "3.1.0",
|
||||
"resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz",
|
||||
@ -2693,10 +2714,6 @@
|
||||
"url": "https://github.com/sponsors/sindresorhus"
|
||||
}
|
||||
},
|
||||
"node_modules/submission-runner": {
|
||||
"resolved": "../shared/submission-runner",
|
||||
"link": true
|
||||
},
|
||||
"node_modules/supports-color": {
|
||||
"version": "7.2.0",
|
||||
"resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
|
||||
|
@ -28,11 +28,11 @@
|
||||
"typescript": "^5.4.2"
|
||||
},
|
||||
"dependencies": {
|
||||
"bwcontest-shared": "file:../shared",
|
||||
"dotenv": "^16.4.5",
|
||||
"fs-extra": "^11.2.0",
|
||||
"rollup": "^4.12.1",
|
||||
"simple-git": "^3.22.0",
|
||||
"submission-runner": "file:../shared/submission-runner",
|
||||
"tree-kill": "^1.2.2",
|
||||
"url-join": "^5.0.0",
|
||||
"zod": "^3.22.4"
|
||||
|
@ -4,10 +4,10 @@ import urlJoin from 'url-join';
|
||||
import os, { EOL } from 'os';
|
||||
import { join } from 'path';
|
||||
import { simpleGit, SimpleGit } from 'simple-git';
|
||||
import { runJava } from 'submission-runner/java.cjs';
|
||||
import { runCSharp } from 'submission-runner/csharp.cjs';
|
||||
import { runCpp } from 'submission-runner/cpp.cjs';
|
||||
import { RunResult, RunResultZod } from 'submission-runner/types.cjs';
|
||||
import { runJava } from 'bwcontest-shared/submission-runner/java.cjs';
|
||||
import { runCSharp } from 'bwcontest-shared/submission-runner/csharp.cjs';
|
||||
import { runCpp } from 'bwcontest-shared/submission-runner/cpp.cjs';
|
||||
import { RunResult, RunResultZod } from 'bwcontest-shared/submission-runner/types.cjs';
|
||||
import { z } from 'zod';
|
||||
|
||||
const submissionPostData = z
|
||||
|
@ -4,7 +4,7 @@
|
||||
"sourceMap": true,
|
||||
"outDir": "./build",
|
||||
"esModuleInterop": true,
|
||||
"strict": true,
|
||||
"strict": true
|
||||
},
|
||||
"include": ["src/**/*.ts"]
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user