From d62cae9b6c753280d5dedd75fef94704adfe0fdc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20Correa=20Casablanca?= Date: Tue, 13 Aug 2024 17:46:05 +0200 Subject: [PATCH] fix: gross regression on build system Signed-off-by: Andres Correa Casablanca --- deno.lock | 1 - turbo.json | 95 +++++++++++++++++------------------------------------- 2 files changed, 30 insertions(+), 66 deletions(-) diff --git a/deno.lock b/deno.lock index 8d015df..1087734 100644 --- a/deno.lock +++ b/deno.lock @@ -166,7 +166,6 @@ "dependencies": [ "npm:@arethetypeswrong/cli@^0.15.4", "npm:@biomejs/biome@1.8.3", - "npm:@coderspirit/nominal-inputs@^1.1.1", "npm:@coderspirit/nominal@^4.0.3", "npm:@types/node@^22.2.0", "npm:@vitest/coverage-v8@^2.0.5", diff --git a/turbo.json b/turbo.json index 430efea..e9ec056 100644 --- a/turbo.json +++ b/turbo.json @@ -2,42 +2,45 @@ "$schema": "https://turbo.build/schema.json", "tasks": { "all": { - "dependsOn": ["build", "lint", "lint:publint", "typecheck", "test"] + "dependsOn": [ + "format", + "build", + "lint", + "lint:publint", + "typecheck", + "test" + ] }, "all:ci": { "dependsOn": [ - "build:ci", - "lint:ci", - "lint:publint:ci", - "typecheck:ci", - "test:ci" + "build", + "lint", + "lint:publint", + "typecheck", + "test" ] }, "all:cov": { - "dependsOn": ["build", "lint", "lint:publint", "typecheck", "test:cov"] + "dependsOn": [ + "format", + "build", + "lint", + "lint:publint", + "typecheck", + "test:cov" + ] }, "all:cov:ci": { "dependsOn": [ - "build:ci", - "lint:ci", - "lint:publint:ci", - "typecheck:ci", - "test:cov:ci" + "build", + "lint", + "lint:publint", + "typecheck", + "test:cov" ] }, "build": { - "dependsOn": ["format", "^build"], - "inputs": [ - "./package.json", - "./rollup.config.mjs", - "./tsconfig.json", - "./src/**/*", - "!./src/**/*.test.mts" - ], - "outputs": ["./dist/**/*"] - }, - "build:ci": { - "dependsOn": ["^build"], + "dependsOn": ["^lint:publint", "^build"], "inputs": [ "./package.json", "./rollup.config.mjs", @@ -48,7 +51,6 @@ "outputs": ["./dist/**/*"] }, "format": { - "dependsOn": ["^format"], "inputs": [ "./biome.jsonc", "./**/*.json", @@ -78,7 +80,6 @@ ] }, "format-staged": { - "dependsOn": ["^format-staged"], "inputs": [ "./biome.jsonc", "./**/*.json", @@ -108,24 +109,6 @@ ] }, "lint": { - "dependsOn": ["format", "^lint"], - "inputs": [ - "./biome.jsonc", - "./**/*.json", - "./**/*.jsonc", - "./**/*.js", - "./**/*.mjs", - "./**/*.cjs", - "./**/*.ts", - "./**/*.mts", - "./**/*.cts", - "./**/*.d.ts", - "./**/*.d.mts", - "./**/*.d.cts" - ] - }, - "lint:ci": { - "dependsOn": ["^lint"], "inputs": [ "./biome.jsonc", "./**/*.json", @@ -145,39 +128,21 @@ "dependsOn": ["build", "^lint:publint"], "inputs": ["./package.json", "./dist/**/*"] }, - "lint:publint:ci": { - "dependsOn": ["build:ci", "^lint:publint"], - "inputs": ["./package.json", "./dist/**/*"] - }, "publish:safe": { "dependsOn": ["^publish:safe"], "cache": false }, "test": { - "dependsOn": ["build", "^test"], - "inputs": ["./package.json", "./vitest.config.mts", "./src/**/*"] - }, - "test:ci": { - "dependsOn": ["build:ci", "^test"], + "dependsOn": ["build"], "inputs": ["./package.json", "./vitest.config.mts", "./src/**/*"] }, "test:cov": { - "dependsOn": ["build", "^test:cov"], - "inputs": ["./package.json", "./src/**/*"], - "outputs": ["./coverage/**/*"] - }, - "test:cov:ci": { - "dependsOn": ["build:ci", "^test:cov"], + "dependsOn": ["build"], "inputs": ["./package.json", "./src/**/*"], "outputs": ["./coverage/**/*"] }, "typecheck": { - "dependsOn": ["build", "^typecheck"], - "inputs": ["./src/**/*", "./tsconfig.json", "./.tsbuildinfo"], - "outputs": ["./.tsbuildinfo"] - }, - "typecheck:ci": { - "dependsOn": ["build:ci", "^typecheck"], + "dependsOn": ["^typecheck", "^build"], "inputs": ["./src/**/*", "./tsconfig.json", "./.tsbuildinfo"], "outputs": ["./.tsbuildinfo"] }