Skip to content

Commit

Permalink
build: isolate lint task
Browse files Browse the repository at this point in the history
  • Loading branch information
scolladon committed Sep 3, 2024
1 parent 32d5ee9 commit 8e0befd
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 18 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/reusable-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ jobs:

- uses: google/wireit@setup-github-actions-caching/v2

- name: Lint plugin
run: yarn lint

- name: Build plugin
run: yarn pack

Expand Down
1 change: 1 addition & 0 deletions .husky/pre-push
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/bin/sh

yarn lint
yarn pack
yarn test
npm outdated || true
Expand Down
32 changes: 14 additions & 18 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,18 @@
},
"wireit": {
"build": {
"dependencies": [
"compile",
"lint"
]
"command": "tsc -p . --incremental",
"files": [
"src/**/*.ts",
"src/**/*.json",
"**/tsconfig.json",
"messages/**"
],
"output": [
"lib/**",
"*.tsbuildinfo"
],
"clean": "if-file-deleted"
},
"clean": {
"command": "shx rm -rf lib 'reports/*' .nyc_output oclif.manifest.json package.tgz 'sfdx-git-delta-v*.tgz' 'stderr*.txt' 'stdout*.txt' '.stryker-tmp/*' perf-result.txt",
Expand All @@ -92,20 +100,6 @@
"node_modules/*"
]
},
"compile": {
"command": "tsc -p . --incremental",
"files": [
"src/**/*.ts",
"src/**/*.json",
"**/tsconfig.json",
"messages/**"
],
"output": [
"lib/**",
"*.tsbuildinfo"
],
"clean": "if-file-deleted"
},
"lint": {
"command": "biome check --error-on-warnings src __tests__",
"files": [
Expand Down Expand Up @@ -169,6 +163,7 @@
"perf-result.txt"
],
"dependencies": [
"lint",
"build"
]
},
Expand Down Expand Up @@ -199,6 +194,7 @@
".nyc_output/**"
],
"dependencies": [
"lint",
"build"
]
},
Expand Down

0 comments on commit 8e0befd

Please sign in to comment.