Skip to content

Commit b469cc8

Browse files
committed
chore(postgrest): fix add gitignore to format
1 parent 7c86ee4 commit b469cc8

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed
Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
module.exports = {
1+
import type { Config } from '@jest/types'
2+
3+
const config: Config.InitialOptions = {
24
preset: 'ts-jest',
35
testEnvironment: 'node',
46
collectCoverageFrom: ['src/**/*', '!src/types.ts'],
@@ -16,3 +18,4 @@ module.exports = {
1618
},
1719
},
1820
}
21+
export default config

packages/core/postgrest-js/scripts/format.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ const monorepoRoot = path.resolve(__dirname, '../../../../')
88

99
// Run prettier from the monorepo root
1010
const command =
11-
process.argv[2] === 'check'
12-
? 'npx prettier --check "packages/core/postgrest-js/**/*{ts,mjs,json,yml,yaml}"'
13-
: 'npx prettier --write "packages/core/postgrest-js/**/*{ts,mjs,json,yml,yaml}"'
11+
process.argv[2] === 'check'
12+
? 'npx prettier --ignore-path packages/core/postgrest-js/.gitignore --check "packages/core/postgrest-js/**/*{ts,js,mjs,json,yml,yaml}"'
13+
: 'npx prettier --ignore-path packages/core/postgrest-js/.gitignore --write "packages/core/postgrest-js/**/*{ts,js,mjs,json,yml,yaml}"'
1414

1515
try {
16-
execSync(command, { cwd: monorepoRoot, stdio: 'inherit' })
16+
execSync(command, { cwd: monorepoRoot, stdio: 'inherit' })
1717
} catch (error) {
18-
process.exit(error.status || 1)
18+
process.exit(error.status || 1)
1919
}

0 commit comments

Comments
 (0)