Skip to content

Commit

Permalink
feat: wip
Browse files Browse the repository at this point in the history
  • Loading branch information
andresgutgon committed Oct 25, 2024
1 parent 459f84f commit 98aa8e0
Show file tree
Hide file tree
Showing 6 changed files with 2,662 additions and 1,747 deletions.
3 changes: 1 addition & 2 deletions packages/sdks/typescript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,17 +38,16 @@
"devDependencies": {
"@latitude-data/compiler": "workspace:^",
"@latitude-data/core": "workspace:^",
"@latitude-data/constants": "workspace:*",
"@latitude-data/eslint-config": "workspace:*",
"@latitude-data/typescript-config": "workspace:^",
"@rollup/plugin-alias": "^5.1.0",
"@rollup/plugin-replace": "^6.0.1",
"@rollup/plugin-typescript": "^11.1.6",
"@types/eventsource": "^1.1.15",
"@types/node": "^22.7.5",
"node-fetch": "3.3.2",
"@types/node-fetch": "^2.6.11",
"msw": "^2.3.5",
"node-fetch": "3.3.2",
"rollup": "^4.21.1",
"rollup-plugin-dts": "^6.1.1",
"vitest": "^2.0.5"
Expand Down
4 changes: 4 additions & 0 deletions packages/sdks/typescript/rollup.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ const aliasEntries = {
find: '@latitude-data/core/browser',
replacement: path.resolve(__dirname, '../../core/src/browser'),
},
{
find: '@latitude-data/constants/errors',
replacement: path.resolve(__dirname, '../../constants/src/errors'),
},
],
}
const EXTERNALS = [
Expand Down
1 change: 1 addition & 0 deletions packages/sdks/typescript/src/utils/errorConstants.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from '@latitude-data/constants/errors'
2 changes: 1 addition & 1 deletion packages/sdks/typescript/src/utils/errors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
DbErrorRef,
LatitudeErrorCodes,
RunErrorCodes,
} from '@latitude-data/constants/errors'
} from './errorConstants'

function getErrorMessage({
status,
Expand Down
5 changes: 3 additions & 2 deletions packages/sdks/typescript/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@
"compilerOptions": {
"moduleResolution": "Bundler",
"outDir": "./dist",
"rootDir": ".",
"rootDir": "../../",
"baseUrl": ".",
"jsx": "preserve",
"paths": {
"$sdk/*": ["./src/*"]
"$sdk/*": ["./src/*"],
"@latitude-data/constants/*": ["../../constants/src/*"]
}
}
}
Loading

0 comments on commit 98aa8e0

Please sign in to comment.