Hello yarn berry
parent
04a4306895
commit
782f334a27
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -0,0 +1,10 @@
|
||||
packageExtensions:
|
||||
koa-body@*:
|
||||
dependencies:
|
||||
"@types/koa": "*"
|
||||
koa: "*"
|
||||
plugins:
|
||||
- path: .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs
|
||||
spec: "@yarnpkg/plugin-interactive-tools"
|
||||
nodeLinker: node-modules
|
||||
yarnPath: .yarn/releases/yarn-berry.js
|
@ -1 +1 @@
|
||||
Subproject commit 14ef44fd1a748008b97a6dfd88a0fb509fd7928a
|
||||
Subproject commit 2c77ba2f473b248eda91b2062819c68896343b05
|
@ -0,0 +1,5 @@
|
||||
const { spawnSync } = require('child_process');
|
||||
const os = require('os');
|
||||
if (os.platform() === 'linux') {
|
||||
spawnSync('bash download.sh');
|
||||
}
|
@ -1,6 +1,7 @@
|
||||
#!/usr/bin/env node
|
||||
|
||||
const { argv } = require('yargs');
|
||||
const argv = require('cac')().parse();
|
||||
|
||||
if ((argv._ || [])[0] == 'cache') require('../dist/cache')()
|
||||
if (argv.options.debug) process.env.DEV = 'on';
|
||||
if (argv.args[0] === 'cache') require('../dist/cache')();
|
||||
else require('../dist/daemon')();
|
||||
|
@ -1,27 +1,32 @@
|
||||
{
|
||||
"name": "@hydrooj/hydrojudge",
|
||||
"bin": "bin/hydrojudge.js",
|
||||
"version": "2.6.6",
|
||||
"version": "2.7.0",
|
||||
"main": "package.json",
|
||||
"author": "undefined <i@undefined.moe>",
|
||||
"repository": "https://github.com/hydro-dev/Hydro.git",
|
||||
"dependencies": {
|
||||
"@hydrooj/utils": "^1.0.14",
|
||||
"axios": "^0.21.1",
|
||||
"bson": "^4.3.0",
|
||||
"cac": "^6.7.3",
|
||||
"fs-extra": "^10.0.0",
|
||||
"js-yaml": "^4.0.0",
|
||||
"js-yaml": "^4.1.0",
|
||||
"lodash": "^4.17.21",
|
||||
"p-queue": "^6.6.1",
|
||||
"mongodb": "^3.6.8",
|
||||
"p-queue": "^6.6.2",
|
||||
"shell-quote": "^1.7.2",
|
||||
"ws": "^7.4.5",
|
||||
"yargs": "^17.0.1"
|
||||
"ws": "^7.4.6"
|
||||
},
|
||||
"preferUnplugged": true,
|
||||
"license": "SEE LICENSE IN LICENSE",
|
||||
"devDependencies": {
|
||||
"@types/bson": "^4.0.2",
|
||||
"@types/fs-extra": "^9.0.10",
|
||||
"@types/js-yaml": "^4.0.0",
|
||||
"@types/shell-quote": "^1.7.0"
|
||||
"@types/fs-extra": "^9.0.11",
|
||||
"@types/js-yaml": "^4.0.1",
|
||||
"@types/lodash": "^4.14.170",
|
||||
"@types/shell-quote": "^1.7.0",
|
||||
"@types/ws": "^7.4.4"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"hydrooj": "*"
|
||||
}
|
||||
}
|
||||
|
@ -1,8 +1,8 @@
|
||||
const { writeFileSync } = require('fs');
|
||||
const { argv } = require('yargs');
|
||||
const argv = require('cac')().parse();
|
||||
const pkg = require('../package.json');
|
||||
|
||||
if (argv.dev) pkg.version = `${pkg.version}-dev`;
|
||||
if (argv.options.dev) pkg.version = `${pkg.version}-dev`;
|
||||
else pkg.version = pkg.version.replace('-dev', '');
|
||||
|
||||
writeFileSync(`${process.cwd()}/package.json`, JSON.stringify(pkg, null, 2));
|
||||
|
Loading…
Reference in New Issue