chore: remove some unecessary build:lib

This commit is contained in:
Nodonisko
2023-08-01 10:35:13 +02:00
committed by Tomáš Klíma
parent a3990f6c4e
commit 0a5d8267c4
19 changed files with 19 additions and 95 deletions

View File

@@ -3,16 +3,12 @@
"version": "1.0.5",
"license": "See LICENSE.md in repo root",
"sideEffects": false,
"main": "lib/index",
"files": [
"lib/",
"!**/*.map"
],
"main": "src/index",
"private": true,
"scripts": {
"lint:js": "yarn g:eslint '**/*.{ts,tsx,js}'",
"test:unit": "jest --version && jest -c ../../jest.config.base.js",
"type-check": "tsc --build",
"build:lib": "rimraf lib && yarn tsc --build ./tsconfig.lib.json"
"type-check": "tsc --build"
},
"dependencies": {
"@trezor/env-utils": "workspace:*",

View File

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

View File

@@ -14,19 +14,13 @@
},
"license": "See LICENSE.md in repo root",
"sideEffects": false,
"main": "lib/index.js",
"files": [
"lib/",
"!**/*.map"
],
"types": "lib/index.d.ts",
"main": "src/index.ts",
"scripts": {
"lint": "eslint '**/*.{ts,js}'",
"test:unit": "jest --version && jest",
"test:discovery": "tsx ./tests/tools/discovery-test.ts",
"test:anonymity": "tsx ./tests/tools/anonymity-test.ts",
"type-check": "tsc --build",
"build:lib": "rimraf lib && tsc --build ./tsconfig.lib.json"
"type-check": "tsc --build"
},
"dependencies": {
"@trezor/blockchain-link": "workspace:*",

View File

@@ -2,3 +2,4 @@ export { CoinjoinBackend } from './backend/CoinjoinBackend';
export { CoinjoinClient } from './client/CoinjoinClient';
export { getInputSize, getOutputSize } from './utils/coordinatorUtils';
export * from './types';
export * from './enums';

View File

@@ -20,7 +20,7 @@ export interface CoinjoinClientSettings extends BaseSettings {
prison?: CoinjoinPrisonInmate[];
}
export type { ScanAccountProgress, ScanAccountCheckpoint } from './backend';
export type { ScanAccountProgress, ScanAccountCheckpoint, ScanProgressInfo } from './backend';
export * from './account';
export * from './client';

View File

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

View File

@@ -1,7 +1,7 @@
module.exports = {
globals: {
'ts-jest': {
tsconfig: 'tsconfig.lib.json',
tsconfig: 'tsconfig.json',
},
},
testEnvironment: 'node',

View File

@@ -4,12 +4,11 @@
"private": true,
"license": "See LICENSE.md in repo root",
"sideEffects": false,
"main": "lib/index",
"main": "src/index",
"scripts": {
"lint:js": "yarn g:eslint '**/*.{ts,tsx,js}'",
"test:unit": "jest -c ../../jest.config.base.js --passWithNoTests",
"type-check": "tsc --build",
"build:lib": "rimraf lib && yarn tsc --build ./tsconfig.lib.json"
"type-check": "tsc --build"
},
"dependencies": {
"@trezor/connect": "workspace:*"

View File

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

View File

@@ -12,15 +12,10 @@
"url": "https://github.com/trezor/trezor-suite/issues"
},
"sideEffects": false,
"main": "lib/index",
"files": [
"lib/",
"!**/*.map"
],
"main": "src/index.ts",
"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

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

View File

@@ -4,16 +4,11 @@
"private": true,
"license": "See LICENSE.md in repo root",
"sideEffects": false,
"main": "lib/index",
"files": [
"lib/",
"!**/*.map"
],
"main": "src/index.ts",
"scripts": {
"lint:js": "yarn g:eslint '**/*.{ts,tsx,js}'",
"test:e2e": "jest --runInBand -c ../../jest.config.base.js",
"type-check": "tsc --build tsconfig.json",
"build:lib": "rimraf ./lib && yarn tsc --build tsconfig.lib.json",
"test:stress": "ts-node -O '{\"module\": \"commonjs\"}' ./e2e/identities-stress.ts"
},
"dependencies": {

View File

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

View File

@@ -2,7 +2,7 @@ module.exports = {
rootDir: './',
globals: {
'ts-jest': {
tsconfig: 'tsconfig.lib.json',
tsconfig: 'tsconfig.json',
},
},
moduleFileExtensions: ['js', 'ts'],

View File

@@ -11,20 +11,12 @@
"bugs": {
"url": "https://github.com/trezor/trezor-suite/issues"
},
"main": "./lib/main.js",
"browser": "./lib/renderer.js",
"files": [
"lib/main.js",
"lib/renderer.js",
"!**/*.map"
],
"types": "lib/main.d.ts",
"typings": "lib/main.d.ts",
"main": "./src/main.ts",
"browser": "./src/renderer.ts",
"scripts": {
"lint:js": "yarn g:eslint '**/*{.ts,.tsx}'",
"test:unit": "jest --verbose -c jest.config.js",
"type-check": "tsc --build tsconfig.json",
"build:lib": "rimraf lib && yarn tsc --build ./tsconfig.lib.json"
"type-check": "tsc --build tsconfig.json"
},
"devDependencies": {
"jest": "^26.6.3",

View File

@@ -1,10 +0,0 @@
{
"extends": "../../tsconfig.lib.json",
"compilerOptions": {
"target": "esnext",
"outDir": "./lib",
"noImplicitAny": false,
"esModuleInterop": false
},
"include": ["./src"]
}

View File

@@ -1,5 +1,5 @@
import { useEffect, useReducer } from 'react';
import { ScanProgressInfo } from '@trezor/coinjoin/lib/types/backend';
import { ScanProgressInfo } from '@trezor/coinjoin';
import { CoinjoinService } from 'src/services/coinjoin';
import { selectSelectedAccount } from 'src/reducers/wallet/selectedAccountReducer';

View File

@@ -35,7 +35,7 @@ import {
transactionsActions,
} from '@suite-common/wallet-core';
import { addToast } from '@suite-common/toast-notifications';
import { SessionPhase } from '@trezor/coinjoin/lib/enums';
import { SessionPhase } from '@trezor/coinjoin';
import { UI, DEVICE } from '@trezor/connect';
import { arrayDistinct } from '@trezor/utils';

View File

@@ -1,7 +1,7 @@
module.exports = {
globals: {
'ts-jest': {
tsconfig: 'tsconfig.lib.json',
tsconfig: 'tsconfig.json',
},
},
testEnvironment: 'node',