screeps-typescript-starter
screeps-typescript-starter copied to clipboard
Starter kit for TypeScript-based Screeps AI codes.
I developed a starter kit that uses ESBuild for compilation and ESLint Airbnb for style guide with minimal set of dependencies and would like to share it here. How do...
Eslint output these following lines when file was saved. ``` Message: Request textDocument/codeAction failed with message: Cannot read config file: \screeps-typescript-starter\node_modules\eslint-config-prettier\@typescript-eslint.js Error: "prettier/@typescript-eslint" has been merged into "prettier" in eslint-config-prettier...
Hi, Can anybody help me with adding terser to the rollup plugins for minifying ?
Using Object.defineProperty like: ``` Object.defineProperty(Creep.prototype, 'boosts', { get() { if (!this._boosts) { this._boosts = _.compact(_.unique(_.map(this.body as BodyPartDefinition[], bodyPart => bodyPart.boost))); } return this._boosts; }, configurable: true, }); ``` and importing...
Running `npm run push-main` gives this with nodejs 17: > Package subpath './package.json' is not defined by "exports" in /home/wouldntyouliketoknow/node_modules/tslib/package.json This change incorporates [the fix](https://github.com/ezolenko/rollup-plugin-typescript2/issues/286) from rollup-plugin-typescript2 v0.31.0. Please feel...
When setting up a file watcher with this repo (https://github.com/appulate/vscode-file-watcher), it prints `[error]` in two lines, and VSCode there were some errors. Here is the output ![Bildschirmfoto 2021-10-15 um 13...
**Testcase :** ``` at RoomPosition.inRangeTo (:14512:20) at Object.Creep.meeleAttackTarget (main:4335:18) at attack$1 (main:310:11) at run$9 (main:324:9) at ErrorMapper.wrapLoop (main:4919:13) at Object.loop (main:4097:17) at __module (__mainLoop:1:52) at __mainLoop:2:3 at Object.exports.evalCode (:15845:76) at...
Hi, I am trying to integrate Code Coverage into my screeps project(Mocha is already running fine). This is what I have so far: - installed dev dependencies - @istanbuljs/nyc-config-typescript -...
When I try to push I get this error: node:744) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): FetchError: request to https://screeps.com:443/api/user/branches? failed, reason: read ECONNRESET I can only assume this...
Are there any plans to update this package properly to the newest versions of the various dependencies? By doing so manually I noticed the following issues: * `source-map` **MUST** stay...