Skip to content

Commit

Permalink
feat!: try out ESM only on canary (#1826)
Browse files Browse the repository at this point in the history
BREAKING CHANGES: remove CJS and IIFE
  • Loading branch information
luwes authored Apr 20, 2024
1 parent 37c5683 commit 39d6faa
Show file tree
Hide file tree
Showing 18 changed files with 724 additions and 384 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,8 @@ jobs:
- run: npm ci
- run: npm run lint
- run: npm run test:coverage
- run: npm run build:lib
- run: npm run build
- run: npm run build:demo
- run: npm run build:dist
- run: npm run build:standalone
- run: npx --yes [email protected] release ${{ inputs.version }} ${{ inputs.dryrun && '--dry-run' || '' }} ${{ inputs.prerelease && format('--prerelease {0}', inputs.prerelease) || '' }} --provenance --github-release --verbose
- name: Get NPM version
id: npm-version
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,8 @@ jobs:
node-version: ${{ matrix.node-version }}
cache: npm
- run: npm ci
- run: npm run build:lib
- run: npm run build
- run: npm run build:demo
- run: npm run build:dist
- run: npm run build:standalone

deploy-preview:
# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
Expand All @@ -82,7 +80,7 @@ jobs:
with:
node-version: 20
- run: npm ci
- run: npm run build:lib
- run: npm run build
- run: npm run build:demo
- uses: actions/upload-pages-artifact@v3
with:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ yarn-error.log
.idea/
.vscode/
/disttest/
/dist/
12 changes: 0 additions & 12 deletions .npmignore

This file was deleted.

3 changes: 0 additions & 3 deletions dist/ReactPlayer.js

This file was deleted.

7 changes: 0 additions & 7 deletions dist/ReactPlayer.js.map

This file was deleted.

33 changes: 0 additions & 33 deletions dist/ReactPlayer.standalone.es6.js

This file was deleted.

45 changes: 0 additions & 45 deletions dist/ReactPlayer.standalone.js

This file was deleted.

7 changes: 0 additions & 7 deletions dist/ReactPlayer.standalone.js.map

This file was deleted.

Loading

0 comments on commit 39d6faa

Please sign in to comment.