diff --git a/package.json b/package.json index 52c7d79..a6dc1f5 100644 --- a/package.json +++ b/package.json @@ -31,33 +31,33 @@ "node": "10.x" }, "devDependencies": { - "@rollup/plugin-commonjs": "^11.0.2", + "@rollup/plugin-commonjs": "^11.1.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/lodash": "^3.10.1", + "@types/lodash": "^3.10.3", "@types/mocha": "^5.2.5", - "@types/node": "^10.17.18", + "@types/node": "^13.13.1", "@types/screeps": "^3.1.0", "@types/sinon": "^5.0.5", "@types/sinon-chai": "^3.2.0", "chai": "^4.2.0", "lodash": "^3.10.1", "mocha": "^5.2.0", - "prettier": "^1.14.0", - "rollup": "^1.32.1", - "rollup-plugin-buble": "^0.19.4", + "prettier": "^2.0.4", + "rollup": "^2.6.1", + "rollup-plugin-buble": "^0.19.8", "rollup-plugin-clear": "^2.0.7", "rollup-plugin-nodent": "^0.2.2", - "rollup-plugin-screeps": "^0.1.2", + "rollup-plugin-screeps": "^1.0.0", "rollup-plugin-typescript2": "^0.27.0", "sinon": "^6.3.5", "sinon-chai": "^3.2.0", - "ts-node": "^7.0.1", - "tslint": "^5.9.1", - "tslint-config-prettier": "^1.14.0", - "tslint-plugin-prettier": "^1.3.0", - "typescript": "^2.9.2" + "ts-node": "^8.8.2", + "tslint": "^6.1.1", + "tslint-config-prettier": "^1.18.0", + "tslint-plugin-prettier": "^2.3.0", + "typescript": "^3.8.3" }, "dependencies": { "source-map": "~0.6.1" diff --git a/src/types.d.ts b/src/types.d.ts index 00727b9..6e34eff 100644 --- a/src/types.d.ts +++ b/src/types.d.ts @@ -1,5 +1,12 @@ // 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 interface CreepMemory { role: string;