mirror of
https://github.com/smogon/sprites.git
synced 2026-08-19 08:25:50 -05:00
allow importing @smogon/sprite-root to get root
This commit is contained in:
3
lib/root/index.ts
Normal file
3
lib/root/index.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
|
||||
import path = require('path');
|
||||
export = path.resolve(__dirname, "../../../" /* extra path component is because we will be in dist/ */);
|
||||
7
lib/root/package.json
Normal file
7
lib/root/package.json
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"name": "@smogon/sprite-root",
|
||||
"dependencies": {
|
||||
"@types/node": "^14.10.1"
|
||||
},
|
||||
"main": "dist/index.js"
|
||||
}
|
||||
9
lib/root/tsconfig.json
Normal file
9
lib/root/tsconfig.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"extends": "../../tsconfig-base",
|
||||
"compilerOptions": {
|
||||
"outDir": "dist",
|
||||
// We need commonjs for __dirname
|
||||
"module": "commonjs",
|
||||
"esModuleInterop": false
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user