From 167d7a0a6289e9f16e4968c64ea526be95feac0f Mon Sep 17 00:00:00 2001 From: Steve Dodier-Lazaro Date: Sun, 15 Sep 2024 00:38:47 +0200 Subject: [PATCH] chore(cache,rest): Add commands to build local debug files --- packages/cuttings/package.json | 2 ++ packages/rest/package.json | 2 ++ 2 files changed, 4 insertions(+) diff --git a/packages/cuttings/package.json b/packages/cuttings/package.json index 2c3e895..f963e74 100644 --- a/packages/cuttings/package.json +++ b/packages/cuttings/package.json @@ -23,7 +23,9 @@ "homepage": "https://github.com/Sidnioulz/figmarine", "scripts": { "build": "tsc && tsup --env.NODE_ENV production", + "build:debug": "tsc && tsup --entry src/debug.ts --entry src/index.ts --env.NODE_ENV development", "dev": "tsc-watch --onSuccess \"tsup --env.NODE_ENV production\"", + "dev:debug": "tsc-watch --onSuccess \"tsup --entry src/debug.ts --entry src/index.ts --env.NODE_ENV development\"", "lint": "eslint .", "lint:fix": "eslint . --fix", "test": "vitest run", diff --git a/packages/rest/package.json b/packages/rest/package.json index 8528c21..136de50 100644 --- a/packages/rest/package.json +++ b/packages/rest/package.json @@ -24,7 +24,9 @@ "scripts": { "api:regen": "node ./scripts/regenFigmaRestApi.mjs", "build": "tsc && tsup --env.NODE_ENV production", + "build:debug": "tsc && tsup --entry src/debug.ts --entry src/index.ts --env.NODE_ENV development", "dev": "tsc-watch --onSuccess \"tsup --env.NODE_ENV production\"", + "dev:debug": "tsc-watch --onSuccess \"tsup --entry src/debug.ts --entry src/index.ts --env.NODE_ENV development\"", "docs:build": "echo 'TODO: vitepress build docs'", "docs:dev": "echo 'TODO: vitepress dev docs --port 1227'", "docs:serve": "echo 'TODO: vitepress serve docs'",