Skip to content

Commit

Permalink
update references in tsconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
jakubswierczek committed Jan 16, 2024
1 parent 50234bb commit f7c275f
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 11 deletions.
4 changes: 2 additions & 2 deletions apps/summerfi-api/lib/automation-subgraph/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
"name": "automation-subgraph",
"version": "1.0.0",
"type": "module",
"main": "src/index.ts",
"types": "src/index.ts",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"scripts": {
"tsc": "tsc",
"watch": "tsc -w",
Expand Down
12 changes: 8 additions & 4 deletions apps/summerfi-api/lib/contracts/package.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,20 @@
{
"name": "contracts",
"version": "1.0.0",
"main": "src/index.ts",
"types": "src/index.ts",
"scripts": {
"tsc": "tsc",
"watch": "tsc -w",
"test": "jest",
"build": "tsc -b -v"
},
"exports": {
".": "./src/index.ts",
"./*": "./src/*.ts"
".": {
"import": "./dist/index.js",
"types": "./dist/index.d.ts"
},
"./*": {
"import": "./dist/*.js",
"types": "./dist/*.d.ts"
}
}
}
1 change: 1 addition & 0 deletions apps/summerfi-api/lib/setup-trigger/src/services/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ import {
AgainstPositionValidator,
getAgainstPositionValidator,
} from './against-position-validators'
import fetch from "node-fetch";

const rpcConfig = {
skipCache: false,
Expand Down
12 changes: 8 additions & 4 deletions apps/summerfi-api/lib/shared/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
"name": "shared",
"version": "1.0.0",
"type": "module",
"main": "src/index.ts",
"types": "src/index.ts",
"dependencies": {
"zod": "^3.22.4"
},
Expand All @@ -14,7 +12,13 @@
"build": "tsc -b -v"
},
"exports": {
".": "./src/index.ts",
"./*": "./src/*.ts"
".": {
"import": "./dist/index.js",
"types": "./dist/index.d.ts"
},
"./*": {
"import": "./dist/*.js",
"types": "./dist/*.d.ts"
}
}
}
13 changes: 12 additions & 1 deletion apps/summerfi-api/tsconfig-base.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,16 @@
// "paths": {}, /* A series of entries which re-map imports to lookup locations relative to the 'baseUrl'. */
},
"include": [],
"exclude": ["node_modules", "**/*.spec.ts"]
"exclude": ["node_modules", "**/*.spec.ts"],
"references": [
{
"path": "./lib/shared",
},
{
"path": "./lib/automation-subgraph"
},
{
"path": "./lib/contracts"
},
]
}

0 comments on commit f7c275f

Please sign in to comment.