Skip to content

Commit

Permalink
Merge pull request #5 from ProjectAussie/seth/internal/fix-for-node-14
Browse files Browse the repository at this point in the history
Internal: fix for node 14
  • Loading branch information
SethRogers7420 authored Sep 16, 2021
2 parents 685c566 + 6ebb8cc commit d1e8e74
Show file tree
Hide file tree
Showing 5 changed files with 111 additions and 87 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -170,3 +170,13 @@ removal in the future.
Version 1.0 [supports](https://github.com/SweetIQ/schemats/issues/19)
[strict null-checking](https://github.com/Microsoft/TypeScript/pull/7140)
and reflects the _NOT NULL_ constraint defined in PostgreSQL schema.

## Testing Changes

Testing changes in ProjectAussie requires you to install a local version of schemats in ProjectAussie.

Sample steps for installing a local version of schemats to test:
1. `npm pack` (NOTE: installing the local directory does not install peer deps because it is only a symlink)
1. cd to_project_aussie
1. npm install <path_to_schema_ts>/<tarball>.tgz
1. npm run generate:schemats
174 changes: 94 additions & 80 deletions package-lock.json

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

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "schemats",
"version": "3.0.7-embark",
"version": "3.0.8-embark",
"description": "Generate typescript interface definitions from (postgres) SQL database schema",
"keywords": [
"postgres",
Expand Down Expand Up @@ -44,7 +44,7 @@
"@types/mocha": "^2.2.39",
"@types/mysql": "0.0.33",
"@types/mz": "^0.0.31",
"@types/node": "^6.0.77",
"@types/node": "^14.17.3",
"@types/power-assert": "^1.4.29",
"@types/proxyquire": "^1.3.27",
"@types/sinon": "^2.1.2",
Expand All @@ -69,8 +69,8 @@
"lodash": "^4.17.4",
"mysql": "^2.13.0",
"mz": "^2.6.0",
"pg-promise": "^6.3.6",
"typescript": "^2.7.1",
"pg-promise": "^10.10.2",
"typescript": "^4.2.3",
"typescript-formatter": "^7.0.1",
"yargs": "^8.0.1"
},
Expand Down
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,5 +108,5 @@ export async function typescriptOfSchema (db: Database|string,
return processedResult.dest
}

export {Database, getDatabase} from './schema'
export {Options, OptionValues}
export { Database, getDatabase } from './schema'
export { Options, OptionValues }
2 changes: 1 addition & 1 deletion src/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ export function getDatabase (connection: string): Database {
}
}

export {Database} from './schemaInterfaces'
export { Database } from './schemaInterfaces'

0 comments on commit d1e8e74

Please sign in to comment.