[Sandbox] Fix shared importing

This commit is contained in:
orosmatthew 2024-03-11 20:36:45 -04:00
parent 0d0d22b730
commit 37a0cd73bc
5 changed files with 24 additions and 12 deletions

View File

@ -13,6 +13,7 @@
"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"
@ -32,6 +33,18 @@
"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": {
"version": "1.2.6",
"resolved": "https://registry.npmjs.org/@aashutoshrathi/word-wrap/-/word-wrap-1.2.6.tgz",
@ -2680,6 +2693,10 @@
"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",

View File

@ -32,6 +32,7 @@
"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"

View File

@ -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 '@submissionRunner/java.cjs';
import { runCSharp } from '@submissionRunner/csharp.cjs';
import { runCpp } from '@submissionRunner/cpp.cjs';
import { RunResult, RunResultZod } from '@submissionRunner/types.cjs';
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 { z } from 'zod';
const submissionPostData = z

View File

@ -5,9 +5,6 @@
"outDir": "./build",
"esModuleInterop": true,
"strict": true,
"paths": {
"@submissionRunner/*": ["../shared/submissionRunner/*"]
}
},
"references": [{ "path": "../shared/submissionRunner" }]
"include": ["src/**/*.ts"]
}

View File

@ -5,10 +5,7 @@
},
"devDependencies": {
"@types/node": "20.x",
"@types/fs-extra": "^11.0.4"
},
"dependencies": {
"typescript": "^5.4.2",
"@types/fs-extra": "^11.0.4",
"zod": "^3.22.4",
"tree-kill": "^1.2.2",
"fs-extra": "^11.2.0"