From 5c96145527f9480e7b7b16b599f4b2091e41aa6c Mon Sep 17 00:00:00 2001 From: Nate Moore Date: Wed, 23 Mar 2022 19:46:16 -0500 Subject: [PATCH] add build:ci command which skips `tsc` (#2869) --- package.json | 1 + packages/create-astro/package.json | 1 + packages/integrations/lit/package.json | 1 + packages/integrations/partytown/package.json | 1 + packages/integrations/preact/package.json | 1 + packages/integrations/react/package.json | 1 + packages/integrations/sitemap/package.json | 1 + packages/integrations/solid/package.json | 1 + packages/integrations/svelte/package.json | 1 + packages/integrations/tailwind/package.json | 1 + packages/integrations/turbolinks/package.json | 1 + packages/integrations/vue/package.json | 1 + packages/markdown/remark/package.json | 1 + packages/webapi/package.json | 1 + turbo.json | 4 ++++ 15 files changed, 18 insertions(+) diff --git a/package.json b/package.json index e3d93232c..dab600b08 100644 --- a/package.json +++ b/package.json @@ -9,6 +9,7 @@ "scripts": { "release": "pnpm run build && changeset publish", "build": "turbo run build --no-deps --scope=astro --scope=create-astro --scope=\"@astrojs/*\"", + "build:ci": "turbo run build:ci --no-deps --scope=astro --scope=create-astro --scope=\"@astrojs/*\"", "build:examples": "turbo run build --scope=\"@example/*\"", "dev": "turbo run dev --no-deps --no-cache --parallel --scope=astro --scope=create-astro --scope=\"@astrojs/*\"", "test": "pnpm run test --filter astro --filter @astrojs/webapi", diff --git a/packages/create-astro/package.json b/packages/create-astro/package.json index 1f2089e29..8ed4ff5ce 100644 --- a/packages/create-astro/package.json +++ b/packages/create-astro/package.json @@ -19,6 +19,7 @@ }, "scripts": { "build": "astro-scripts build \"src/**/*.ts\" && tsc", + "build:ci": "astro-scripts build \"src/**/*.ts\"", "dev": "astro-scripts dev \"src/**/*.ts\"", "test": "rm -rf test/fixtures && mkdir test/fixtures && node --unhandled-rejections=strict test/create-astro.test.js" }, diff --git a/packages/integrations/lit/package.json b/packages/integrations/lit/package.json index 7225fad12..e5ca54610 100644 --- a/packages/integrations/lit/package.json +++ b/packages/integrations/lit/package.json @@ -27,6 +27,7 @@ }, "scripts": { "build": "astro-scripts build \"src/**/*.ts\" && tsc", + "build:ci": "astro-scripts build \"src/**/*.ts\"", "dev": "astro-scripts dev \"src/**/*.ts\"" }, "dependencies": { diff --git a/packages/integrations/partytown/package.json b/packages/integrations/partytown/package.json index 60be71dbe..e415e012c 100644 --- a/packages/integrations/partytown/package.json +++ b/packages/integrations/partytown/package.json @@ -24,6 +24,7 @@ }, "scripts": { "build": "astro-scripts build \"src/**/*.ts\" && tsc", + "build:ci": "astro-scripts build \"src/**/*.ts\"", "dev": "astro-scripts dev \"src/**/*.ts\"" }, "dependencies": { diff --git a/packages/integrations/preact/package.json b/packages/integrations/preact/package.json index aeae45e11..c6b705750 100644 --- a/packages/integrations/preact/package.json +++ b/packages/integrations/preact/package.json @@ -28,6 +28,7 @@ }, "scripts": { "build": "astro-scripts build \"src/**/*.ts\" && tsc", + "build:ci": "astro-scripts build \"src/**/*.ts\"", "dev": "astro-scripts dev \"src/**/*.ts\"" }, "dependencies": { diff --git a/packages/integrations/react/package.json b/packages/integrations/react/package.json index 3204ae773..fa9c939b9 100644 --- a/packages/integrations/react/package.json +++ b/packages/integrations/react/package.json @@ -27,6 +27,7 @@ }, "scripts": { "build": "astro-scripts build \"src/**/*.ts\" && tsc", + "build:ci": "astro-scripts build \"src/**/*.ts\"", "dev": "astro-scripts dev \"src/**/*.ts\"" }, "dependencies": { diff --git a/packages/integrations/sitemap/package.json b/packages/integrations/sitemap/package.json index eb280d626..34d303750 100644 --- a/packages/integrations/sitemap/package.json +++ b/packages/integrations/sitemap/package.json @@ -23,6 +23,7 @@ }, "scripts": { "build": "astro-scripts build \"src/**/*.ts\" && tsc", + "build:ci": "astro-scripts build \"src/**/*.ts\"", "dev": "astro-scripts dev \"src/**/*.ts\"" }, "dependencies": { diff --git a/packages/integrations/solid/package.json b/packages/integrations/solid/package.json index 03d6a2047..289abf617 100644 --- a/packages/integrations/solid/package.json +++ b/packages/integrations/solid/package.json @@ -27,6 +27,7 @@ }, "scripts": { "build": "astro-scripts build \"src/**/*.ts\" && tsc", + "build:ci": "astro-scripts build \"src/**/*.ts\"", "dev": "astro-scripts dev \"src/**/*.ts\"" }, "dependencies": { diff --git a/packages/integrations/svelte/package.json b/packages/integrations/svelte/package.json index 3c160e10a..71a7a20a6 100644 --- a/packages/integrations/svelte/package.json +++ b/packages/integrations/svelte/package.json @@ -27,6 +27,7 @@ }, "scripts": { "build": "astro-scripts build \"src/**/*.ts\" && tsc", + "build:ci": "astro-scripts build \"src/**/*.ts\"", "dev": "astro-scripts dev \"src/**/*.ts\"" }, "dependencies": { diff --git a/packages/integrations/tailwind/package.json b/packages/integrations/tailwind/package.json index cee05d732..318f93951 100644 --- a/packages/integrations/tailwind/package.json +++ b/packages/integrations/tailwind/package.json @@ -23,6 +23,7 @@ }, "scripts": { "build": "astro-scripts build \"src/**/*.ts\" && tsc", + "build:ci": "astro-scripts build \"src/**/*.ts\"", "dev": "astro-scripts dev \"src/**/*.ts\"" }, "dependencies": { diff --git a/packages/integrations/turbolinks/package.json b/packages/integrations/turbolinks/package.json index 30fd791c3..9c605979a 100644 --- a/packages/integrations/turbolinks/package.json +++ b/packages/integrations/turbolinks/package.json @@ -24,6 +24,7 @@ }, "scripts": { "build": "astro-scripts build \"src/**/*.ts\" && tsc", + "build:ci": "astro-scripts build \"src/**/*.ts\"", "dev": "astro-scripts dev \"src/**/*.ts\"" }, "dependencies": { diff --git a/packages/integrations/vue/package.json b/packages/integrations/vue/package.json index def467ffa..b3a416bf4 100644 --- a/packages/integrations/vue/package.json +++ b/packages/integrations/vue/package.json @@ -27,6 +27,7 @@ }, "scripts": { "build": "astro-scripts build \"src/**/*.ts\" && tsc", + "build:ci": "astro-scripts build \"src/**/*.ts\"", "dev": "astro-scripts dev \"src/**/*.ts\"" }, "dependencies": { diff --git a/packages/markdown/remark/package.json b/packages/markdown/remark/package.json index 4d2c5072c..841531b57 100644 --- a/packages/markdown/remark/package.json +++ b/packages/markdown/remark/package.json @@ -18,6 +18,7 @@ "scripts": { "prepublish": "pnpm build", "build": "astro-scripts build \"src/**/*.ts\" && tsc -p tsconfig.json", + "build:ci": "astro-scripts build \"src/**/*.ts\"", "postbuild": "astro-scripts copy \"src/**/*.js\"", "dev": "astro-scripts dev \"src/**/*.ts\"" }, diff --git a/packages/webapi/package.json b/packages/webapi/package.json index dc60e97a9..63b45685a 100644 --- a/packages/webapi/package.json +++ b/packages/webapi/package.json @@ -72,6 +72,7 @@ }, "scripts": { "build": "node run/build.js", + "build:ci": "node run/build.js", "dev": "node run/build.js", "release": "node run/build.js && npm publish --access public", "test": "mocha --parallel --timeout 15000" diff --git a/turbo.json b/turbo.json index d599d2f1d..cf8497191 100644 --- a/turbo.json +++ b/turbo.json @@ -5,6 +5,10 @@ "dependsOn": ["^build"], "outputs": ["**/dist/**", "!**/vendor/**"] }, + "build:ci": { + "dependsOn": ["^build:ci"], + "outputs": ["**/dist/**", "!**/vendor/**"] + }, "dev": { "cache": false },