Skip to content

Commit

Permalink
Fix prettier glob pattern (#263)
Browse files Browse the repository at this point in the history
* build: fix prettier glob pattern

* refactor: run prettier
  • Loading branch information
wirekang authored Dec 29, 2022
1 parent 71507c4 commit b66bc0c
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"test:typings": "tsd test/typings",
"test:esmimports": "node scripts/check-esm-imports.js",
"test:esbuild": "esbuild --bundle --platform=node --external:pg-native dist/esm/index.js --outfile=/dev/null",
"prettier": "prettier --write src/**/*.ts test/**/*.ts",
"prettier": "prettier --write 'src/**/*.ts' 'test/**/*.ts'",
"build": "npm run clean && npm run build:esm && npm run build:cjs && npm run script:module-fixup && npm run script:copy-interface-doc",
"build:esm": "tsc -p tsconfig.json && npm run script:add-deno-type-references",
"build:cjs": "tsc -p tsconfig-cjs.json",
Expand Down
2 changes: 1 addition & 1 deletion src/plugin/deduplicate-joins/deduplicate-joins-plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { DeduplicateJoinsTransformer } from './deduplicate-joins-transformer.js'

/**
* Plugin that removes duplicate joins from queries.
*
*
* See [this recipe](https://github.com/koskimas/kysely/tree/master/recipes/deduplicate-joins.md)
*/
export class DeduplicateJoinsPlugin implements KyselyPlugin {
Expand Down
16 changes: 8 additions & 8 deletions test/node/src/with-schema.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -288,14 +288,14 @@ for (const dialect of ['postgres'] as const) {
.createTable('foo')
.addColumn('bar', 'integer', (col) => col.references('pets.id'))

testSql(query, dialect, {
postgres: {
sql: 'create table "mammals"."foo" ("bar" integer references "mammals"."pets" ("id"))',
parameters: [],
},
mysql: NOT_SUPPORTED,
sqlite: NOT_SUPPORTED,
})
testSql(query, dialect, {
postgres: {
sql: 'create table "mammals"."foo" ("bar" integer references "mammals"."pets" ("id"))',
parameters: [],
},
mysql: NOT_SUPPORTED,
sqlite: NOT_SUPPORTED,
})
})
})

Expand Down
10 changes: 5 additions & 5 deletions test/typings/test-d/clear.test-d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ async function testClearSelect(db: Kysely<Database>) {
expectType<{ id: number }>(r1)

const r2 = await db
.selectFrom('person')
.selectAll()
.clearSelect()
.select('age')
.executeTakeFirstOrThrow()
.selectFrom('person')
.selectAll()
.clearSelect()
.select('age')
.executeTakeFirstOrThrow()

expectType<{ age: number }>(r2)
}

0 comments on commit b66bc0c

Please sign in to comment.