Skip to content

Commit a7bc9de

Browse files
committed
Rename dists to cjs.
1 parent 627de51 commit a7bc9de

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ jobs:
283283
matrix:
284284
bundle:
285285
- esm
286-
- dist
286+
- cjs
287287
- bundle
288288
- bundle_min
289289
- bundle_es6

packages/integration-tests/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"test:bundle:min": "PW_BUNDLE=bundle_min yarn test",
2121
"test:bundle:es6": "PW_BUNDLE=bundle_es6 yarn test",
2222
"test:bundle:es6:min": "PW_BUNDLE=bundle_es6_min yarn test",
23-
"test:dist": "PW_BUNDLE=dist yarn test",
23+
"test:cjs": "PW_BUNDLE=cjs yarn test",
2424
"test:esm": "PW_BUNDLE=esm yarn test",
2525
"test:ci": "playwright test ./suites --browser='all' --reporter='line'"
2626
},

packages/integration-tests/utils/generatePage.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,23 +10,23 @@ const PACKAGE_PATH = '../../packages';
1010

1111
const bundleKey = process.env.PW_BUNDLE;
1212

13-
// `esm` and `dist` builds are modules that can be imported / aliased by webpack
14-
const useCompiledModule = bundleKey && (bundleKey === 'esm' || bundleKey === 'dist');
13+
// `esm` and `cjs` builds are modules that can be imported / aliased by webpack
14+
const useCompiledModule = bundleKey && (bundleKey === 'esm' || bundleKey === 'cjs');
1515

1616
// bundles need to be injected into HTML before Sentry initialization.
1717
const useBundle = bundleKey && !useCompiledModule;
1818

1919
const BUNDLE_PATHS: Record<string, Record<string, string>> = {
2020
browser: {
21-
dist: 'dist/index.js',
21+
cjs: 'dist/index.js',
2222
esm: 'esm/index.js',
2323
bundle: 'build/bundle.js',
2424
bundle_min: 'build/bundle.min.js',
2525
bundle_es6: 'build/bundle.es6.js',
2626
bundle_es6_min: 'build/bundle.es6.min.js',
2727
},
2828
tracing: {
29-
dist: 'dist/index.js',
29+
cjs: 'dist/index.js',
3030
esm: 'esm/index.js',
3131
bundle: 'build/bundle.tracing.js',
3232
bundle_min: 'build/bundle.tracing.min.js',

0 commit comments

Comments
 (0)