chore(env-utils): build:lib

This commit is contained in:
Martin Varmuza
2023-09-11 14:12:16 +02:00
committed by Szymon Lesisz
parent 08e4015010
commit 044490ef5d
2 changed files with 13 additions and 1 deletions

View File

@@ -12,10 +12,15 @@
"url": "https://github.com/trezor/trezor-suite/issues"
},
"sideEffects": false,
"main": "src/index.ts",
"main": "lib/index",
"files": [
"lib/",
"!**/*.map"
],
"scripts": {
"lint:js": "yarn g:eslint '**/*.{ts,tsx,js}'",
"type-check": "tsc --build",
"build:lib": "rimraf ./lib && yarn tsc --build tsconfig.lib.json",
"prepublishOnly": "yarn tsx ../../scripts/prepublishNPM.js",
"prepublish": "yarn tsx ../../scripts/prepublish.js"
},

View File

@@ -0,0 +1,7 @@
{
"extends": "../../tsconfig.lib.json",
"compilerOptions": {
"outDir": "lib"
},
"include": ["./src"]
}