Update based on latest version of template
This commit is contained in:
parent
3be118120f
commit
d35d6cad42
4
.gitignore
vendored
4
.gitignore
vendored
@ -131,3 +131,7 @@ dist
|
|||||||
|
|
||||||
# Netscript Type Definitions. These are pulled from the game
|
# Netscript Type Definitions. These are pulled from the game
|
||||||
NetscriptDefinitions.d.ts
|
NetscriptDefinitions.d.ts
|
||||||
|
|
||||||
|
# Location of the files mirrored from the game
|
||||||
|
|
||||||
|
mirror/
|
||||||
|
@ -13,7 +13,11 @@ const createContext = async () => await context({
|
|||||||
plugins: [
|
plugins: [
|
||||||
BitburnerPlugin({
|
BitburnerPlugin({
|
||||||
port: 12525,
|
port: 12525,
|
||||||
types: 'NetscriptDefinitions.d.ts'
|
types: 'NetscriptDefinitions.d.ts',
|
||||||
|
// mirror: { //uncomment to enable file mirroring
|
||||||
|
// 'mirror/own': ['home'],
|
||||||
|
// 'mirror/other': ['n00dles']
|
||||||
|
// }
|
||||||
})
|
})
|
||||||
],
|
],
|
||||||
bundle: true,
|
bundle: true,
|
||||||
|
5
global.d.ts
vendored
Normal file
5
global.d.ts
vendored
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
import {NS as _NS} from 'NetscriptDefinitions';
|
||||||
|
|
||||||
|
declare global {
|
||||||
|
type NS = _NS;
|
||||||
|
}
|
BIN
package-lock.json
generated
BIN
package-lock.json
generated
Binary file not shown.
@ -20,7 +20,6 @@
|
|||||||
"@types/react": "^18.2.25",
|
"@types/react": "^18.2.25",
|
||||||
"@types/react-dom": "^18.2.10",
|
"@types/react-dom": "^18.2.10",
|
||||||
"esbuild": "^0.19.4",
|
"esbuild": "^0.19.4",
|
||||||
"esbuild-bitburner-plugin": "^1.1.0",
|
"esbuild-bitburner-plugin": "^1.1.0"
|
||||||
"glob": "^10.3.10"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -10,6 +10,7 @@
|
|||||||
"dom",
|
"dom",
|
||||||
"dom.iterable"
|
"dom.iterable"
|
||||||
],
|
],
|
||||||
|
"allowJs": true,
|
||||||
"baseUrl": "./",
|
"baseUrl": "./",
|
||||||
"jsx": "react",
|
"jsx": "react",
|
||||||
"paths": {
|
"paths": {
|
||||||
@ -20,6 +21,6 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"include": [
|
"include": [
|
||||||
"servers/**/*.ts*"
|
"servers/**/*", "global.d.ts", "mirror/**/*"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user