feat: fixes project dependecies and publish script
This commit is contained in:
@@ -4,9 +4,7 @@
|
|||||||
"description": "Personal Screeps codebase for Hideyoshi",
|
"description": "Personal Screeps codebase for Hideyoshi",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "node esbuild.config.mjs",
|
"build": "node esbuild.config.mjs",
|
||||||
"push:main": "npm run build && screeps-api --server main upload dist/*.js",
|
"push": "npm run build && ts-node publish.ts",
|
||||||
"push:sim": "npm run build && screeps-api --server main upload --branch sim dist/*.js",
|
|
||||||
"push:local": "npm run build && screeps-api --server local upload dist/*.js",
|
|
||||||
"format": "prettier --check --ignore-path .gitignore .",
|
"format": "prettier --check --ignore-path .gitignore .",
|
||||||
"format:fix": "prettier --write --ignore-path .gitignore ."
|
"format:fix": "prettier --write --ignore-path .gitignore ."
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -83,7 +83,6 @@ const main = async () => {
|
|||||||
branch: env.SCREEPS_BRANCH,
|
branch: env.SCREEPS_BRANCH,
|
||||||
modules: parseDist(env.DIST_PATH),
|
modules: parseDist(env.DIST_PATH),
|
||||||
};
|
};
|
||||||
console.log(JSON.stringify(payload));
|
|
||||||
const headers: ScreepsHeaders = {
|
const headers: ScreepsHeaders = {
|
||||||
'X-Token': env.SCREEPS_TOKEN,
|
'X-Token': env.SCREEPS_TOKEN,
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user