|
8 | 8 | "schemas": ["{projectRoot}/schemas/**/*.sql"], |
9 | 9 | "migrations": ["{projectRoot}/supabase/migrations/**/*.sql"], |
10 | 10 | "atlasSetup": [ |
11 | | - "{projectRoot}/atlas.hcl", |
12 | | - "{projectRoot}/Dockerfile.atlas", |
| 11 | + "{projectRoot}/atlas/atlas.hcl", |
13 | 12 | "{projectRoot}/supabase/migrations/atlas.sum", |
14 | 13 | "{projectRoot}/scripts/atlas-verify-schemas-synced" |
15 | 14 | ], |
|
75 | 74 | }, |
76 | 75 | "build": { |
77 | 76 | "executor": "@nx/js:tsc", |
78 | | - "inputs": ["default", "databaseTypes"], |
| 77 | + "inputs": ["production", "databaseTypes", "^production"], |
79 | 78 | "options": { |
80 | 79 | "outputPath": "pkgs/core/dist", |
81 | 80 | "main": "pkgs/core/src/index.ts", |
|
93 | 92 | }, |
94 | 93 | "jsr:publish": { |
95 | 94 | "executor": "nx:run-commands", |
| 95 | + "cache": false, |
| 96 | + "local": true, |
| 97 | + "dependsOn": ["build"], |
96 | 98 | "outputs": ["{workspaceRoot}/pkgs/core/"], |
97 | 99 | "options": { |
98 | 100 | "cwd": "pkgs/core", |
|
103 | 105 | "lint:sqruff": { |
104 | 106 | "executor": "nx:run-commands", |
105 | 107 | "local": true, |
| 108 | + "inputs": ["schemas", "sqruffConfig"], |
106 | 109 | "options": { |
107 | 110 | "cwd": "{projectRoot}", |
108 | 111 | "commands": [ |
109 | 112 | "sqruff --config=../../.sqruff lint --parsing-errors schemas/" |
110 | 113 | ], |
111 | | - "inputs": ["schemas", "sqruffConfig"], |
112 | 114 | "parallel": false |
113 | 115 | } |
114 | 116 | }, |
115 | 117 | "lint:eslint": { |
116 | 118 | "executor": "@nx/eslint:lint", |
117 | | - "inputs": ["default"] |
| 119 | + "inputs": ["default", "^production"] |
118 | 120 | }, |
119 | 121 | "lint": { |
120 | 122 | "executor": "nx:noop", |
|
124 | 126 | "fix-sql": { |
125 | 127 | "executor": "nx:run-commands", |
126 | 128 | "local": true, |
| 129 | + "inputs": ["schemas", "sqruffConfig"], |
127 | 130 | "options": { |
128 | 131 | "cwd": "{projectRoot}", |
129 | 132 | "commands": [ |
130 | 133 | "sqruff --config=../../.sqruff fix --force --parsing-errors schemas/" |
131 | 134 | ], |
132 | | - "inputs": ["schemas", "sqruffConfig"], |
133 | 135 | "parallel": false |
134 | 136 | } |
135 | 137 | }, |
|
198 | 200 | }, |
199 | 201 | "test": { |
200 | 202 | "executor": "nx:noop", |
| 203 | + "inputs": ["default", "^production", "schemas", "migrations", "pgtapTests", "databaseTypes"], |
201 | 204 | "dependsOn": ["test:pgtap", "test:vitest", "test:types"] |
202 | 205 | }, |
203 | 206 | "test:pgtap": { |
|
214 | 217 | }, |
215 | 218 | "test:vitest": { |
216 | 219 | "executor": "@nx/vite:test", |
217 | | - "dependsOn": ["^build", "build", "verify-gen-types"], |
218 | | - "inputs": ["default", "databaseTypes"], |
| 220 | + "dependsOn": ["build", "verify-gen-types"], |
| 221 | + "inputs": ["default", "databaseTypes", "^production"], |
219 | 222 | "outputs": ["{workspaceRoot}/coverage/{projectRoot}"], |
220 | 223 | "options": { |
221 | 224 | "passWithNoTests": true, |
|
272 | 275 | }, |
273 | 276 | "test:types:vitest": { |
274 | 277 | "executor": "nx:run-commands", |
| 278 | + "cache": true, |
275 | 279 | "dependsOn": ["build"], |
| 280 | + "inputs": ["default", "^production"], |
276 | 281 | "options": { |
277 | 282 | "cwd": "{projectRoot}", |
278 | 283 | "command": "pnpm vitest --typecheck.only --run" |
279 | 284 | } |
280 | 285 | }, |
281 | 286 | "test:types:strict": { |
282 | 287 | "executor": "nx:run-commands", |
| 288 | + "cache": true, |
| 289 | + "dependsOn": ["^build"], |
| 290 | + "inputs": ["default", "^production"], |
283 | 291 | "options": { |
284 | 292 | "cwd": "{projectRoot}", |
285 | 293 | "command": "bash ../../scripts/typecheck-ts2578.sh" |
|
0 commit comments