From 0367d4ac0148e06ad713df62ecfdf5753b512cd4 Mon Sep 17 00:00:00 2001 From: MinuKang Date: Wed, 20 Nov 2024 15:29:05 +0900 Subject: [PATCH] fix(*): test command prebuild core package (#82) --- _templates/packages/router/package.json.t | 2 +- packages/browser/package.json | 2 +- packages/next/package.json | 2 +- packages/react-navigation-native/package.json | 2 +- packages/react-router-dom/package.json | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/_templates/packages/router/package.json.t b/_templates/packages/router/package.json.t index 7400da0..5bed311 100644 --- a/_templates/packages/router/package.json.t +++ b/_templates/packages/router/package.json.t @@ -25,7 +25,7 @@ to: packages/<%= name %>/package.json "package.json" ], "scripts": { - "test": "vitest run", + "test": "pnpm --filter \"@use-funnel/core\" build && vitest run", "test:unit": "vitest --root test/", "build": "rimraf dist && concurrently \"pnpm:build:*\"", "build:dist": "tsup", diff --git a/packages/browser/package.json b/packages/browser/package.json index cfd0a58..2ea36f7 100644 --- a/packages/browser/package.json +++ b/packages/browser/package.json @@ -22,7 +22,7 @@ "package.json" ], "scripts": { - "test": "vitest run", + "test": "pnpm --filter \"@use-funnel/core\" build && vitest run", "test:unit": "vitest --root test/", "build": "rimraf dist && concurrently \"pnpm:build:*\"", "build:dist": "tsup", diff --git a/packages/next/package.json b/packages/next/package.json index 291b08e..55106dc 100644 --- a/packages/next/package.json +++ b/packages/next/package.json @@ -22,7 +22,7 @@ "index.d.ts" ], "scripts": { - "test": "vitest run", + "test": "pnpm --filter \"@use-funnel/core\" build && vitest run", "test:watch": "vitest watch", "test:unit": "vitest --root test/", "build": "rimraf dist && concurrently \"pnpm:build:*\"", diff --git a/packages/react-navigation-native/package.json b/packages/react-navigation-native/package.json index 8d8a87e..1ef6711 100644 --- a/packages/react-navigation-native/package.json +++ b/packages/react-navigation-native/package.json @@ -22,7 +22,7 @@ "package.json" ], "scripts": { - "test": "jest .", + "test": "pnpm --filter \"@use-funnel/core\" build && jest .", "build": "rimraf dist && concurrently \"pnpm:build:*\"", "build:dist": "tsup", "build:types": "tsc -p tsconfig.build.json --emitDeclarationOnly", diff --git a/packages/react-router-dom/package.json b/packages/react-router-dom/package.json index 7eeb8f1..ea15125 100644 --- a/packages/react-router-dom/package.json +++ b/packages/react-router-dom/package.json @@ -22,7 +22,7 @@ "package.json" ], "scripts": { - "test": "vitest run", + "test": "pnpm --filter \"@use-funnel/core\" build && vitest run", "test:unit": "vitest --root test/", "build": "rimraf dist && concurrently \"pnpm:build:*\"", "build:dist": "tsup",