make use of @smogon/sprite-root

This commit is contained in:
Christopher Monsanto
2020-09-15 03:10:19 -04:00
parent 194da704ad
commit 4d385ff220
4 changed files with 10 additions and 12 deletions

View File

@@ -1,11 +1,9 @@
import path from 'path';
import { fileURLToPath } from 'url';
import fs from 'fs';
import root from '@smogon/sprite-root';
const __dirname = path.dirname(fileURLToPath(import.meta.url));
const libdir = path.join(__dirname, "../..");
const libdir = path.join(root, "data");
export type SpecieEntry = {
num: number,

View File

@@ -2,5 +2,8 @@
"extends": "../../tsconfig-base",
"compilerOptions": {
"outDir": "dist"
}
},
"references": [
{"path": "../../lib/root"}
]
}