Skip to content

Commit

Permalink
enforce min TS version
Browse files Browse the repository at this point in the history
  • Loading branch information
igalklebanov committed Oct 24, 2024
1 parent 997b743 commit 304d712
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ package-lock.json
tsconfig-base.json
tsconfig-cjs.json
tsconfig.json

CONTRIBUTING.md
23 changes: 23 additions & 0 deletions outdated-typescript.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
type ErrorMessage =
'Your TypeScript version is too old. Please upgrade to >= 4.6.'
export type Kysely = ErrorMessage
export type sql = ErrorMessage
export type expressionBuilder = ErrorMessage
export type Expression = ErrorMessage
export type ColumnType = ErrorMessage
export type Generated = ErrorMessage
export type GeneratedAlways = ErrorMessage
export type JSONColumnType = ErrorMessage
export type Selectable = ErrorMessage
export type Insertable = ErrorMessage
export type Updateable = ErrorMessage
export type MysqlDialect = ErrorMessage
export type PostgresDialect = ErrorMessage
export type SqliteDialect = ErrorMessage
export type MssqlDialect = ErrorMessage
export type InferResult = ErrorMessage
export type CompiledQuery = ErrorMessage
export type UpdateResult = ErrorMessage
export type InsertResult = ErrorMessage
export type DeleteResult = ErrorMessage
export type MergeResult = ErrorMessage
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 8 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,17 @@
"url": "git://github.com/kysely-org/kysely.git"
},
"engines": {
"node": ">=14.0.0"
"node": ">=18.0.0"
},
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
"typesVersions": {
"<4.6": {
"*": [
"outdated-typescript.d.ts"
]
}
},
"exports": {
".": {
"import": "./dist/esm/index.js",
Expand Down

0 comments on commit 304d712

Please sign in to comment.