diff --git a/sandbox/.vscode/settings.json b/sandbox/.vscode/settings.json new file mode 100644 index 0000000..bcdbaee --- /dev/null +++ b/sandbox/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "cSpell.words": ["bwcontest"] +} diff --git a/sandbox/package-lock.json b/sandbox/package-lock.json index 0ea5ace..d143798 100644 --- a/sandbox/package-lock.json +++ b/sandbox/package-lock.json @@ -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", diff --git a/sandbox/package.json b/sandbox/package.json index 866a9a7..acbfb20 100644 --- a/sandbox/package.json +++ b/sandbox/package.json @@ -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" diff --git a/sandbox/src/index.ts b/sandbox/src/index.ts index 62d9f74..d3fb502 100644 --- a/sandbox/src/index.ts +++ b/sandbox/src/index.ts @@ -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 diff --git a/sandbox/tsconfig.json b/sandbox/tsconfig.json index 0a6b16a..b3097aa 100644 --- a/sandbox/tsconfig.json +++ b/sandbox/tsconfig.json @@ -4,7 +4,7 @@ "sourceMap": true, "outDir": "./build", "esModuleInterop": true, - "strict": true, + "strict": true }, "include": ["src/**/*.ts"] }