Skip to content

Commit

Permalink
update tsconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
FreePhoenix888 committed Oct 11, 2023
1 parent db56217 commit 0555860
Show file tree
Hide file tree
Showing 9 changed files with 109 additions and 67 deletions.
4 changes: 2 additions & 2 deletions check.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { client } from './client';
import { client } from './client.js';
import Debug from 'debug';
import { gql } from 'apollo-boost';
import forEach from 'lodash/forEach';
import forEach from 'lodash/forEach.js';
import assert from 'assert';

const debug = Debug('materialized-path:check');
Expand Down
2 changes: 1 addition & 1 deletion client.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { generateApolloClient } from '@deep-foundation/hasura/client';
import { generateApolloClient } from '@deep-foundation/hasura/client.js';

export const client = generateApolloClient({
client: 'materialized-path-test',
Expand Down
128 changes: 83 additions & 45 deletions package-lock.json

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

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"type": "git",
"url": "ssh://[email protected]/deep-foundation/materialized-path.git"
},
"type": "module",
"description": "",
"dependencies": {
"@types/jest": "^26.0.22",
Expand Down Expand Up @@ -38,7 +39,7 @@
"typescript": "^5.0.4"
},
"peerDependencies": {
"@deep-foundation/hasura": "~0.0.53",
"@deep-foundation/hasura": "~0.0.58",
"graphql": "^15.5.3"
}
}
4 changes: 2 additions & 2 deletions permissions.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { HasuraApi } from '@deep-foundation/hasura/api';
import { Trigger } from './trigger';
import { HasuraApi } from '@deep-foundation/hasura/api.js';
import { Trigger } from './trigger.js';

const DEFAULT_SCHEMA = process.env.MIGRATIONS_SCHEMA || 'public';
const DEFAULT_MP_TABLE = process.env.MIGRATIONS_MP_TABLE || 'mp_example__links__mp';
Expand Down
4 changes: 2 additions & 2 deletions relationships.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { HasuraApi } from '@deep-foundation/hasura/api';
import { Trigger } from './trigger';
import { HasuraApi } from '@deep-foundation/hasura/api.js';
import { Trigger } from './trigger.js';

const DEFAULT_SCHEMA = process.env.MIGRATIONS_SCHEMA || 'public';
const DEFAULT_MP_TABLE = process.env.MIGRATIONS_MP_TABLE || 'mp_example__links__mp';
Expand Down
6 changes: 3 additions & 3 deletions table.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { HasuraApi } from '@deep-foundation/hasura/api';
import { sql } from '@deep-foundation/hasura/sql';
import { Trigger } from './trigger';
import { HasuraApi } from '@deep-foundation/hasura/api.js';
import { sql } from '@deep-foundation/hasura/sql.js';
import { Trigger } from './trigger.js';

const DEFAULT_SCHEMA = process.env.MIGRATIONS_SCHEMA || 'public';
const DEFAULT_MP_TABLE = process.env.MIGRATIONS_MP_TABLE || 'mp_example__links__mp';
Expand Down
2 changes: 1 addition & 1 deletion trigger.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { sql } from '@deep-foundation/hasura/sql';
import { sql } from '@deep-foundation/hasura/sql.js';

const call = (strOrFn: string | ((action: string) => string), action: string): string => {
if (typeof(strOrFn) === 'function') return strOrFn(action);
Expand Down
23 changes: 13 additions & 10 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
{
"extends": "@tsconfig/recommended/tsconfig.json",
"exclude": [
"jest.config.ts",
],
"compilerOptions": {
"jsx": "react",
"target": "ES2022",
"jsx": "react-jsx",
"module": "Node16",
"resolveJsonModule": true,
"declaration": true,
"sourceMap": true,
"noImplicitAny": false,
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"moduleResolution": "node16",
"skipLibCheck": true,
// Only for hasura, react-hasura, materialized-path, deeplinks because they are bad typed
"strictNullChecks": false,
"strict": false
}
}
"strict": false,

},
}

0 comments on commit 0555860

Please sign in to comment.