Skip to content

Commit 0e34d58

Browse files
committed
feat!: try out ESM only on canary (#1826)
BREAKING CHANGES: remove CJS and IIFE
1 parent 37c5683 commit 0e34d58

18 files changed

+724
-384
lines changed

.github/workflows/cd.yml

+1-3
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,8 @@ jobs:
5656
- run: npm ci
5757
- run: npm run lint
5858
- run: npm run test:coverage
59-
- run: npm run build:lib
59+
- run: npm run build
6060
- run: npm run build:demo
61-
- run: npm run build:dist
62-
- run: npm run build:standalone
6361
- run: npx --yes [email protected] release ${{ inputs.version }} ${{ inputs.dryrun && '--dry-run' || '' }} ${{ inputs.prerelease && format('--prerelease {0}', inputs.prerelease) || '' }} --provenance --github-release --verbose
6462
- name: Get NPM version
6563
id: npm-version

.github/workflows/ci.yml

+2-4
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,8 @@ jobs:
5858
node-version: ${{ matrix.node-version }}
5959
cache: npm
6060
- run: npm ci
61-
- run: npm run build:lib
61+
- run: npm run build
6262
- run: npm run build:demo
63-
- run: npm run build:dist
64-
- run: npm run build:standalone
6563

6664
deploy-preview:
6765
# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
@@ -82,7 +80,7 @@ jobs:
8280
with:
8381
node-version: 20
8482
- run: npm ci
85-
- run: npm run build:lib
83+
- run: npm run build
8684
- run: npm run build:demo
8785
- uses: actions/upload-pages-artifact@v3
8886
with:

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@ yarn-error.log
1010
.idea/
1111
.vscode/
1212
/disttest/
13+
/dist/

.npmignore

-12
This file was deleted.

dist/ReactPlayer.js

-3
This file was deleted.

dist/ReactPlayer.js.map

-7
This file was deleted.

dist/ReactPlayer.standalone.es6.js

-33
This file was deleted.

dist/ReactPlayer.standalone.js

-45
This file was deleted.

dist/ReactPlayer.standalone.js.map

-7
This file was deleted.

0 commit comments

Comments
 (0)