Skip to content

Commit a8c187c

Browse files
committed
build(rokt): resolve SDK types from monorepo declarations
1 parent fa8221c commit a8c187c

9 files changed

Lines changed: 21 additions & 15 deletions

kits/rokt/dist/Rokt-Kit.common.js

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

kits/rokt/dist/Rokt-Kit.common.js.map

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

kits/rokt/dist/Rokt-Kit.d.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ declare global {
1111
__rokt_li_guid__?: string;
1212
optimizely?: OptimizelyGlobal;
1313
ROKT_DOMAIN?: string;
14-
mParticle: any;
1514
}
1615
}
1716

kits/rokt/dist/Rokt-Kit.esm.js

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

kits/rokt/dist/Rokt-Kit.esm.js.map

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

kits/rokt/dist/Rokt-Kit.iife.js

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

kits/rokt/dist/Rokt-Kit.iife.js.map

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

kits/rokt/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@
2424
"directory": "kits/rokt"
2525
},
2626
"scripts": {
27+
"build:core-types": "npm --prefix ../.. run build:types",
28+
"prebuild": "npm run build:core-types",
2729
"build": "vite build",
2830
"build:watch": "vite build --watch",
2931
"lint": "eslint \"src/**/*.ts\" \"test/**/*.ts\"",

kits/rokt/tsconfig.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,12 @@
1212
"forceConsistentCasingInFileNames": true,
1313
"lib": ["DOM", "ESNext"],
1414
"declaration": true,
15-
"skipLibCheck": true
15+
"skipLibCheck": true,
16+
"baseUrl": ".",
17+
"paths": {
18+
"@mparticle/web-sdk": ["../../dist/types/src/public-types.d.ts"],
19+
"@mparticle/web-sdk/internal": ["../../dist/types/src/internal-types.d.ts"]
20+
}
1621
},
1722
"include": ["src/**/*"],
1823
"exclude": ["node_modules", "dist", "test"]

0 commit comments

Comments
 (0)