From 47d50e80f5272bd1517c04c49badaa8d558e3b5d Mon Sep 17 00:00:00 2001 From: Pavel Prichodko <14926950+prichodko@users.noreply.github.com> Date: Tue, 14 Mar 2023 13:49:33 +0100 Subject: [PATCH] rename typegen -> build:types --- apps/web/package.json | 2 +- apps/web/tsconfig.json | 1 + packages/components/package.json | 4 ++-- packages/icons/package.json | 4 ++-- packages/status-js/package.json | 4 ++-- packages/status-react/package.json | 4 ++-- 6 files changed, 10 insertions(+), 9 deletions(-) diff --git a/apps/web/package.json b/apps/web/package.json index c08699e8..35033738 100644 --- a/apps/web/package.json +++ b/apps/web/package.json @@ -7,7 +7,7 @@ "build": "tsc && vite build", "preview": "vite preview", "lint": "eslint src", - "#typecheck": "tsc" + "typecheck": "tsc" }, "dependencies": { "@status-im/components": "*", diff --git a/apps/web/tsconfig.json b/apps/web/tsconfig.json index c335085d..690a5f7a 100644 --- a/apps/web/tsconfig.json +++ b/apps/web/tsconfig.json @@ -1,4 +1,5 @@ { + "extends": "../../tsconfig.base.json", "compilerOptions": { "target": "ESNext", "lib": ["dom", "dom.iterable", "esnext"], diff --git a/packages/components/package.json b/packages/components/package.json index 98dee10d..80843ebb 100644 --- a/packages/components/package.json +++ b/packages/components/package.json @@ -17,8 +17,8 @@ "scripts": { "dev": "TAMAGUI_TARGET='web' vite build --watch --mode development", "build": "TAMAGUI_TARGET='web' vite build", - "postbuild": "yarn typegen", - "typegen": "tsc --noEmit false --emitDeclarationOnly || true", + "postbuild": "yarn build:types", + "build:types": "tsc --noEmit false --emitDeclarationOnly || true", "lint": "eslint src", "typecheck": "tsc", "storybook": "TAMAGUI_TARGET='web' storybook dev -p 3001", diff --git a/packages/icons/package.json b/packages/icons/package.json index 1294e91d..4c3af60a 100644 --- a/packages/icons/package.json +++ b/packages/icons/package.json @@ -38,10 +38,10 @@ "generate": "rimraf 12 16 20 reactions && svgr src --silent && yarn fix", "prebuild": "yarn generate", "build": "vite build", - "postbuild": "yarn typegen", + "postbuild": "yarn build:types", + "build:types": "tsc --noEmit false --emitDeclarationOnly || true", "#test": "vitest", "typecheck": "tsc", - "typegen": "tsc --noEmit false --emitDeclarationOnly || true", "lint": "eslint '{12,16,20,reactions}/**/*.{ts,tsx}'", "lint:fix": "yarn lint --fix", "format": "prettier --write '{12,16,20,reactions}/**/*.{ts,tsx}'", diff --git a/packages/status-js/package.json b/packages/status-js/package.json index a9b3dbfc..0ed522b1 100644 --- a/packages/status-js/package.json +++ b/packages/status-js/package.json @@ -22,8 +22,8 @@ "test": "vitest", "dev": "vite build --watch --mode development", "build": "vite build", - "postbuild": "yarn typegen", - "typegen": "tsc --noEmit false --emitDeclarationOnly || true", + "postbuild": "yarn build:types", + "build:types": "tsc --noEmit false --emitDeclarationOnly || true", "lint": "eslint src", "typecheck": "tsc", "protos": "protons protos/*.proto", diff --git a/packages/status-react/package.json b/packages/status-react/package.json index d5d56efe..252c209b 100644 --- a/packages/status-react/package.json +++ b/packages/status-react/package.json @@ -22,8 +22,8 @@ "#test": "vitest", "dev": "vite build --watch --mode development", "build": "vite build", - "postbuild": "yarn typegen", - "typegen": "tsc --noEmit false --emitDeclarationOnly || true", + "postbuild": "yarn build:types", + "build:types": "tsc --noEmit false --emitDeclarationOnly || true", "lint": "eslint src", "typecheck": "tsc", "clean": "rimraf dist node_modules .turbo"