Skip to content

Commit db89a22

Browse files
committed
refactor(tsconfig): use tsconfig from package in @tipdapp/dapp
1 parent 97d7960 commit db89a22

File tree

7 files changed

+23
-32
lines changed

7 files changed

+23
-32
lines changed

apps/dapp/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@
5959
},
6060
"devDependencies": {
6161
"@svgr/webpack": "^6.5.1",
62+
"@tipdapp/tsconfig": "^0.0.0",
6263
"@types/react": "^18.0.21",
6364
"@types/react-dom": "^18.0.6",
6465
"autoprefixer": "^10.4.11",

apps/dapp/tsconfig.json

Lines changed: 6 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"extends": "@tipdapp/tsconfig/tsconfig.next.json",
23
"compilerOptions": {
34
"baseUrl": ".",
45
"paths": {
@@ -11,24 +12,8 @@
1112
"@/utils/*": ["src/utils/*"],
1213
"@/utils": ["src/utils"],
1314
"@/lib/*": ["src/lib/*"],
14-
"@/lib": ["src/lib"],
15-
"@/validation/*": ["src/validationOld/*"]
15+
"@/lib": ["src/lib"]
1616
},
17-
"target": "es5",
18-
"lib": ["dom", "dom.iterable", "esnext"],
19-
"allowJs": true,
20-
"skipLibCheck": true,
21-
"strict": true,
22-
"forceConsistentCasingInFileNames": true,
23-
"noEmit": true,
24-
"incremental": true,
25-
"esModuleInterop": true,
26-
"module": "esnext",
27-
"moduleResolution": "node",
28-
"resolveJsonModule": true,
29-
"isolatedModules": true,
30-
"jsx": "preserve",
31-
"preserveSymlinks": true,
3217
"plugins": [
3318
{
3419
"name": "next"
@@ -37,16 +22,9 @@
3722
},
3823
"include": [
3924
"next-env.d.ts",
40-
"**/*.ts",
41-
"**/*.tsx",
42-
".next/types/**/*.ts",
43-
// "src/shared/TipdappContracts/types/index.d.ts"
25+
"src/**/*.ts",
26+
"src/**/*.tsx",
27+
".next/types/**/*.ts"
4428
],
45-
"exclude": [
46-
"node_modules",
47-
"**/node_modules/*",
48-
".next",
49-
"dist",
50-
"src/artifacts",
51-
]
29+
"exclude": ["node_modules"]
5230
}

apps/database/.eslintrc.cjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@ module.exports = {
1212
'@typescript-eslint/no-namespace': 'off',
1313
},
1414
ignorePatterns: [
15-
'prisma.*',
15+
'prisma/*',
1616
],
1717
};

apps/database/src/controllers/pageController.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,6 @@ const update = async (req: PageApi.Update.Req, res: PageApi.Update.Res) => {
4141
} as Prisma.TokenWhereUniqueInput)
4242
);
4343

44-
console.log('req.user', req.user);
45-
4644
await pageService.update({
4745
where: {
4846
role_affixUrl: { affixUrl: req.user.nick, role: req.user.activeRole },

package-lock.json

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/contracts/.env.example

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Crypto
2+
NETWORK=
3+
COINMARKETCAP_API_KEY=
4+
ALCHEMY_API_KEY=
5+
DEPLOYER_WALLET_PRIVATE_KEY=
6+
# '0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266',
7+
SIGNER_WALLET_PRIVATE_KEY=
8+
# '0x3C44CdDdB6a900fa2b585dd299e03d12FA4293BC',
9+
THIRD_WALLET_PRIVATE_KEY=
10+
# '0x69E952d100e786aAA6B63a3473D67ccaF1183271
11+
ETHERNAL_EMAIL=
12+
ETHERNAL_PASSWORD=

packages/tsconfig/tsconfig.next.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"noEmit": false,
88
"outDir": "dist",
99
"sourceMap": true,
10-
"module": "esnext"
10+
"module": "esnext",
11+
"jsx": "preserve"
1112
}
1213
}

0 commit comments

Comments
 (0)