Skip to content

Commit 029de31

Browse files
committed
fix: Fix missing TS output definitions
1 parent e1faf58 commit 029de31

3 files changed

Lines changed: 39 additions & 13 deletions

File tree

‎.changeset/smart-shoes-call.md‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@ts-rest/react-query': patch
3+
---
4+
5+
Fix missing typescript definitions
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"jsc": {
3+
"target": "es2017",
4+
"parser": {
5+
"syntax": "typescript",
6+
"decorators": true,
7+
"dynamicImport": true
8+
},
9+
"transform": {
10+
"decoratorMetadata": true,
11+
"legacyDecorator": true
12+
},
13+
"keepClassNames": true,
14+
"externalHelpers": true,
15+
"loose": true
16+
},
17+
"module": {
18+
"type": "commonjs",
19+
"strict": true,
20+
"noInterop": true
21+
},
22+
"sourceMaps": true,
23+
"exclude": [
24+
"jest.config.ts",
25+
".*.spec.tsx?$",
26+
".*.test.tsx?$",
27+
"./src/jest-setup.ts$",
28+
"./**/jest-setup.ts$",
29+
".*.js$"
30+
]
31+
}

‎libs/ts-rest/react-query/project.json‎

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,23 +5,13 @@
55
"tags": [],
66
"targets": {
77
"build": {
8-
"executor": "@nrwl/web:rollup",
8+
"executor": "@nrwl/js:swc",
99
"outputs": ["{options.outputPath}"],
1010
"options": {
1111
"outputPath": "dist/libs/ts-rest/react-query",
12+
"main": "libs/ts-rest/react-query/src/index.ts",
1213
"tsConfig": "libs/ts-rest/react-query/tsconfig.lib.json",
13-
"project": "libs/ts-rest/react-query/package.json",
14-
"entryFile": "libs/ts-rest/react-query/src/index.ts",
15-
"external": ["react/jsx-runtime"],
16-
"rollupConfig": "@nrwl/react/plugins/bundle-rollup",
17-
"compiler": "swc",
18-
"assets": [
19-
{
20-
"glob": "libs/ts-rest/react-query/README.md",
21-
"input": ".",
22-
"output": "."
23-
}
24-
]
14+
"assets": ["libs/ts-rest/react-query/*.md"]
2515
}
2616
},
2717
"lint": {

0 commit comments

Comments
 (0)