Skip to content

Commit

Permalink
build(sql): migrate to nx
Browse files Browse the repository at this point in the history
  • Loading branch information
marcus-sa committed Sep 11, 2023
1 parent f6fcec6 commit 1e2729e
Show file tree
Hide file tree
Showing 47 changed files with 207 additions and 1,926 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,8 @@
"mariadb": "^2.5.2",
"pg": "^8.5.1",
"pg-native": "^3.0.0",
"sqlstring": "^2.3.2"
"fast-glob": "^3.2.5",
"sqlstring-sqlite": "^0.1.1"
},
"engines": {
"node": ">= 16.0.0"
Expand Down
28 changes: 28 additions & 0 deletions packages/sql/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"extends": ["../../.eslintrc.json"],
"ignorePatterns": ["!**/*"],
"overrides": [
{
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
"parserOptions": {
"project": ["packages/sql/tsconfig.*?.json"]
},
"rules": {}
},
{
"files": ["*.ts", "*.tsx"],
"rules": {}
},
{
"files": ["*.js", "*.jsx"],
"rules": {}
},
{
"files": ["*.json"],
"parser": "jsonc-eslint-parser",
"rules": {
"@nx/dependency-checks": "error"
}
}
]
}
1 change: 0 additions & 1 deletion packages/sql/.npmignore

This file was deleted.

1 change: 0 additions & 1 deletion packages/sql/bin/deepkit-sql.js

This file was deleted.

19 changes: 0 additions & 19 deletions packages/sql/browser.ts

This file was deleted.

5 changes: 0 additions & 5 deletions packages/sql/commands.ts

This file was deleted.

Empty file removed packages/sql/dist/.gitkeep
Empty file.
1 change: 0 additions & 1 deletion packages/sql/dist/esm/package.json

This file was deleted.

23 changes: 0 additions & 23 deletions packages/sql/index.ts

This file was deleted.

12 changes: 12 additions & 0 deletions packages/sql/jest.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import type { Config } from 'jest';

export default {
displayName: 'sql',
preset: '../../jest.preset.js',
testEnvironment: 'node',
transform: {
'^.+\\.[tj]s$': ['ts-jest', { tsconfig: '<rootDir>/tsconfig.spec.json' }],
},
moduleFileExtensions: ['ts', 'js', 'html'],
coverageDirectory: '../../coverage/packages/sql',
} as Config;
Loading

0 comments on commit 1e2729e

Please sign in to comment.