Skip to content

Commit

Permalink
Merge pull request #1521 from ably/package-test-config-change
Browse files Browse the repository at this point in the history
Correct `tsc` module settings for `test:package`
  • Loading branch information
lawrence-forooghian authored Dec 1, 2023
2 parents 0c87394 + fecf2df commit 717733d
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
},
"exports": {
".": {
"types": "./ably.d.ts",
"node": "./build/ably-node.js",
"react-native": "./build/ably-reactnative.js",
"default": "./build/ably.js"
Expand Down
2 changes: 1 addition & 1 deletion test/package/browser/template/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"main": "index.js",
"scripts": {
"build": "esbuild --bundle src/index-default.ts --outdir=dist && esbuild --bundle src/index-modules.ts --outdir=dist",
"typecheck": "tsc -noEmit",
"typecheck": "tsc --project src -noEmit",
"test-support:server": "ts-node server/server.ts",
"test": "playwright test",
"test:install-deps": "playwright install chromium"
Expand Down
9 changes: 9 additions & 0 deletions test/package/browser/template/src/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"include": ["**/*.ts"],
"compilerOptions": {
"resolveJsonModule": true,
"esModuleInterop": true,
"module": "esnext",
"moduleResolution": "bundler"
}
}
2 changes: 0 additions & 2 deletions test/package/browser/template/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
{
"include": ["src/**/*.ts"],
"compilerOptions": {
"resolveJsonModule": true,
"esModuleInterop": true
}
}

0 comments on commit 717733d

Please sign in to comment.