chore(device-utils): prepare setup for npm release

This commit is contained in:
Martin Varmuza
2025-03-11 13:27:18 +01:00
committed by Carlos García Ortiz
parent 7a4a38af5b
commit e4c32edb37
2 changed files with 11 additions and 4 deletions

View File

@@ -1,14 +1,22 @@
{
"name": "@trezor/device-utils",
"version": "1.0.0",
"private": true,
"license": "See LICENSE.md in repo root",
"sideEffects": false,
"main": "src/index",
"publishConfig": {
"main": "lib/index.js"
},
"files": [
"lib/",
"!**/*.map"
],
"scripts": {
"build:lib": "yarn g:rimraf -rf lib && yarn g:tsc --build tsconfig.lib.json && ../../scripts/replace-imports.sh ./lib",
"depcheck": "yarn g:depcheck",
"type-check": "yarn g:tsc --build",
"test:unit": "yarn g:jest -c ../../jest.config.base.js --passWithNoTests"
"test:unit": "yarn g:jest -c ../../jest.config.base.js --passWithNoTests",
"prepublishOnly": "yarn tsx ../../scripts/prepublishNPM.js",
"prepublish": "yarn tsx ../../scripts/prepublish.js"
}
}

View File

@@ -1,8 +1,7 @@
{
"extends": "../../tsconfig.lib.json",
"compilerOptions": {
"outDir": "./lib",
"types": ["w3c-web-usb", "node"]
"outDir": "./lib"
},
"include": ["./src"],
"references": []