From 0864055c41dfbfbd8f5b371ff79b8a91eb63a71d Mon Sep 17 00:00:00 2001 From: Federico Gandellini Date: Sun, 9 Jun 2024 13:52:26 +0200 Subject: [PATCH] setup npm scripts --- apps/react/tsconfig.json | 3 ++- package.json | 5 ++++- packages/game-engine/package.json | 3 ++- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/apps/react/tsconfig.json b/apps/react/tsconfig.json index 7a543a5..a76f615 100644 --- a/apps/react/tsconfig.json +++ b/apps/react/tsconfig.json @@ -7,6 +7,7 @@ "noUnusedLocals": true, "noUnusedParameters": true, "noImplicitAny": true, - "noUncheckedIndexedAccess": true + "noUncheckedIndexedAccess": true, + "esModuleInterop": true } } \ No newline at end of file diff --git a/package.json b/package.json index e80e871..10314a6 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,10 @@ "npm": "v10.2.4" }, "scripts": { - "test": "echo \"Error: no test specified\" && exit 1" + "test": "npm t --workspaces", + "build": "npm run build --workspace @2048/react", + "dev": "npm run dev --workspace @2048/react", + "start": "npm run dev" }, "keywords": [ "2048", diff --git a/packages/game-engine/package.json b/packages/game-engine/package.json index 6247511..1edbe12 100644 --- a/packages/game-engine/package.json +++ b/packages/game-engine/package.json @@ -4,7 +4,8 @@ "description": "A Typescript implementation of the 2048 game engine", "main": "src/index.ts", "scripts": { - "test": "vitest" + "test": "vitest run", + "test:watch": "vitest watch" }, "keywords": [ "2048",