Update Node,TypeScript,Rollup dependencies

@types/lodash@3.10.3 broke the template since lodash is assumed to be
global. Adds a shim to types file to allow continued use of a global
lodash since the game provides 3.10 automatically.
Update rollup to 2.0, and associated rollup plugins
This commit is contained in:
Skyler Kehren
2020-04-20 19:38:02 +03:00
parent b5771202e8
commit 7907d3c819
2 changed files with 20 additions and 13 deletions

View File

@@ -31,33 +31,33 @@
"node": "10.x" "node": "10.x"
}, },
"devDependencies": { "devDependencies": {
"@rollup/plugin-commonjs": "^11.0.2", "@rollup/plugin-commonjs": "^11.1.0",
"@rollup/plugin-multi-entry": "^3.0.0", "@rollup/plugin-multi-entry": "^3.0.0",
"@rollup/plugin-node-resolve": "^7.1.1", "@rollup/plugin-node-resolve": "^7.1.3",
"@types/chai": "^4.1.6", "@types/chai": "^4.1.6",
"@types/lodash": "^3.10.1", "@types/lodash": "^3.10.3",
"@types/mocha": "^5.2.5", "@types/mocha": "^5.2.5",
"@types/node": "^10.17.18", "@types/node": "^13.13.1",
"@types/screeps": "^3.1.0", "@types/screeps": "^3.1.0",
"@types/sinon": "^5.0.5", "@types/sinon": "^5.0.5",
"@types/sinon-chai": "^3.2.0", "@types/sinon-chai": "^3.2.0",
"chai": "^4.2.0", "chai": "^4.2.0",
"lodash": "^3.10.1", "lodash": "^3.10.1",
"mocha": "^5.2.0", "mocha": "^5.2.0",
"prettier": "^1.14.0", "prettier": "^2.0.4",
"rollup": "^1.32.1", "rollup": "^2.6.1",
"rollup-plugin-buble": "^0.19.4", "rollup-plugin-buble": "^0.19.8",
"rollup-plugin-clear": "^2.0.7", "rollup-plugin-clear": "^2.0.7",
"rollup-plugin-nodent": "^0.2.2", "rollup-plugin-nodent": "^0.2.2",
"rollup-plugin-screeps": "^0.1.2", "rollup-plugin-screeps": "^1.0.0",
"rollup-plugin-typescript2": "^0.27.0", "rollup-plugin-typescript2": "^0.27.0",
"sinon": "^6.3.5", "sinon": "^6.3.5",
"sinon-chai": "^3.2.0", "sinon-chai": "^3.2.0",
"ts-node": "^7.0.1", "ts-node": "^8.8.2",
"tslint": "^5.9.1", "tslint": "^6.1.1",
"tslint-config-prettier": "^1.14.0", "tslint-config-prettier": "^1.18.0",
"tslint-plugin-prettier": "^1.3.0", "tslint-plugin-prettier": "^2.3.0",
"typescript": "^2.9.2" "typescript": "^3.8.3"
}, },
"dependencies": { "dependencies": {
"source-map": "~0.6.1" "source-map": "~0.6.1"

7
src/types.d.ts vendored
View File

@@ -1,5 +1,12 @@
// example declaration file - remove these and add your own custom typings // example declaration file - remove these and add your own custom typings
// Shim to allow continued use of global lodash without having to explicitley import in every file.
// as of @types/lodash@3.10.3
import _ from "lodash";
declare global {
const _: typeof _;
}
// memory extension samples // memory extension samples
interface CreepMemory { interface CreepMemory {
role: string; role: string;