Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Commit cd55ff7

Browse files
committed
Update js-web-sdk to include type defs in build process
1 parent 8e17f8d commit cd55ff7

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

packages/js-web-sdk/packages/js-web-sdk/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"license": "ISC",
88
"main": "dist/js-web-sdk.js",
99
"module": "dist/js-web-sdk.mjs",
10-
"typings": "lib/index.d.ts",
10+
"typings": "lib/src/index.d.ts",
1111
"directories": {
1212
"lib": "lib",
1313
"test": "tests"
@@ -16,7 +16,7 @@
1616
"tsc": "rm -rf lib/ && tsc",
1717
"test": "karma start karma.conf.js --single-run",
1818
"test:watch": "karma start karma.conf.js",
19-
"build": "rm -rf dist/ && node ./scripts/build.js",
19+
"build": "rm -rf dist/ && yarn tsc && node ./scripts/build.js",
2020
"cover": "nyc mocha test/**",
2121
"coveralls": "npm run cover -- --report lcovonly && cat ./coverage/lcov.info | coveralls",
2222
"prepublishOnly": "npm run build-browser-umd && npm test && npm run test-xbrowser"

packages/js-web-sdk/packages/react-example-ts/src/index.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import * as optimizelyReactSdk from '@optimizely/react-sdk'
77

88
;(async function () {
99
const optimizely = optimizelySdk.createInstance({
10-
userId: 'user' + Date.now(),
1110
sdkKey: 'BsSyVRsUbE3ExgGCJ9w1to',
1211
})
1312

0 commit comments

Comments
 (0)