Skip to content

Commit 343f1c5

Browse files
committed
Code review returns: Charles
1 parent 3169c56 commit 343f1c5

File tree

5 files changed

+25
-11
lines changed

5 files changed

+25
-11
lines changed

packages/create-twenty-app/tsconfig.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
"compilerOptions": {
44
"outDir": "./dist",
55
"rootDir": "./src",
6-
"module": "commonjs",
7-
"target": "ES2022",
6+
"module": "esnext",
7+
"target": "es2022",
88
"moduleResolution": "node",
99
"esModuleInterop": true,
1010
"allowSyntheticDefaultImports": true,

packages/twenty-sdk/eslint.config.mjs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,13 @@ import baseConfig from '../../eslint.config.mjs';
22

33
export default [
44
...baseConfig,
5+
{
6+
ignores: ['**/dist/**'],
7+
},
58
{
69
rules: {
710
'no-console': 'off',
811
},
9-
ignores: ['**/dist/**', 'vite.config.ts'],
12+
ignores: ['src/**/*.ts', '!src/cli/**/*.ts'],
1013
},
1114
];

packages/twenty-sdk/tsconfig.cli.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,15 @@
33
"compilerOptions": {
44
"outDir": "./dist/cli",
55
"rootDir": "./src/cli",
6-
"module": "commonjs",
7-
"target": "ES2022",
6+
"module": "esnext",
7+
"target": "es2022",
88
"esModuleInterop": true,
9+
"allowUnreachableCode": false,
10+
"declaration": true,
11+
"declarationMap": true,
912
"allowSyntheticDefaultImports": true,
1013
"strict": true,
1114
"forceConsistentCasingInFileNames": true,
12-
"declaration": true,
13-
"declarationMap": true,
1415
},
1516
"include": ["src/cli/**/*.ts"],
1617
"exclude": ["node_modules", "dist", "**/*.test.ts", "**/*.spec.ts", "**/*.e2e-spec.ts", "**/__tests__/**"]

packages/twenty-sdk/tsconfig.json

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
{
22
"extends": "../../tsconfig.base.json",
33
"compilerOptions": {
4-
"declaration": true,
54
"outDir": "./dist",
65
"rootDir": "src",
6+
"module": "esnext",
7+
"target": "es2022",
8+
"esModuleInterop": true,
79
"allowUnreachableCode": false,
10+
"declaration": true,
811
"strictNullChecks": true,
912
"alwaysStrict": true,
1013
"noImplicitAny": true,
@@ -13,6 +16,15 @@
1316
"@/*": ["./src/*"]
1417
}
1518
},
16-
"include": ["src/**/*.ts"],
19+
"files": [],
20+
"references": [
21+
{
22+
"path": "./tsconfig.cli.json"
23+
},
24+
{
25+
"path": "./tsconfig.e2e.json"
26+
},
27+
],
28+
"include": ["src/**/*.ts", "vite.config.ts"],
1729
"exclude": ["src/cli/**"]
1830
}

packages/twenty-sdk/vite.config.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
1-
// @ts-ignore
21
import path from 'path';
32
import { defineConfig } from 'vite';
43
import dts from 'vite-plugin-dts';
54
import tsconfigPaths from 'vite-tsconfig-paths';
6-
// @ts-ignore
75
import packageJson from './package.json';
86

97
const moduleEntries = Object.keys((packageJson as any).exports || {})

0 commit comments

Comments
 (0)