Update based on latest version of template

This commit is contained in:
Isaac Shoebottom 2023-11-03 17:43:04 -03:00
parent 3be118120f
commit d35d6cad42
6 changed files with 17 additions and 4 deletions

4
.gitignore vendored
View File

@ -131,3 +131,7 @@ dist
# Netscript Type Definitions. These are pulled from the game
NetscriptDefinitions.d.ts
# Location of the files mirrored from the game
mirror/

View File

@ -13,7 +13,11 @@ const createContext = async () => await context({
plugins: [
BitburnerPlugin({
port: 12525,
types: 'NetscriptDefinitions.d.ts'
types: 'NetscriptDefinitions.d.ts',
// mirror: { //uncomment to enable file mirroring
// 'mirror/own': ['home'],
// 'mirror/other': ['n00dles']
// }
})
],
bundle: true,

5
global.d.ts vendored Normal file
View File

@ -0,0 +1,5 @@
import {NS as _NS} from 'NetscriptDefinitions';
declare global {
type NS = _NS;
}

BIN
package-lock.json generated

Binary file not shown.

View File

@ -20,7 +20,6 @@
"@types/react": "^18.2.25",
"@types/react-dom": "^18.2.10",
"esbuild": "^0.19.4",
"esbuild-bitburner-plugin": "^1.1.0",
"glob": "^10.3.10"
"esbuild-bitburner-plugin": "^1.1.0"
}
}

View File

@ -10,6 +10,7 @@
"dom",
"dom.iterable"
],
"allowJs": true,
"baseUrl": "./",
"jsx": "react",
"paths": {
@ -20,6 +21,6 @@
}
},
"include": [
"servers/**/*.ts*"
"servers/**/*", "global.d.ts", "mirror/**/*"
]
}