mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-03-21 17:25:10 -05:00
The new FS module is an abstraction layer over the built-in fs module.
The main reason it exists is because I need an abstraction layer I can
disable writing from. But that'll be in another commit.
Currently, mine is better because:
- paths are always relative to PS's base directory
- Promises (seriously wtf Node Core what are you thinking)
- PS-style API: FS("foo.txt").write("bar") for easier argument order
- mkdirp
This also increases the minimum supported Node version from v6.0 to
v7.7, because we now use async/await. Sorry for the inconvenience!
22 lines
476 B
JSON
22 lines
476 B
JSON
{
|
|
"compilerOptions": {
|
|
"lib": ["es2015", "es2016.array.include", "es2017.object"],
|
|
"noEmit": true,
|
|
"target": "esnext",
|
|
"strict": true,
|
|
"allowJs": true,
|
|
"checkJs": true
|
|
},
|
|
"types": ["node"],
|
|
"include": [
|
|
"./dev-tools/globals.ts",
|
|
"./sim/dex-data.js",
|
|
"./sim/dex.js",
|
|
"./sim/prng.js",
|
|
"./crashlogger.js",
|
|
"./dnsbl.js",
|
|
"./repl.js",
|
|
"./fs.js"
|
|
]
|
|
}
|