Skip to content

Commit 7155fbe

Browse files
committed
chore: improve packaging flow
1 parent 9a83931 commit 7155fbe

File tree

134 files changed

+136
-2557
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

134 files changed

+136
-2557
lines changed

.github/workflows/publish.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ jobs:
5858
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
5959
run: |
6060
if [[ $GITHUB_REF =~ alpha|beta ]]; then
61-
npm publish --tag next
61+
yarn npm publish --tag next
6262
else
63-
npm publish --tag latest
63+
yarn npm publish --tag latest
6464
fi

.npmignore

-15
This file was deleted.

.pnp.js

+15-1,284
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
-37.7 KB
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

.yarn/plugins/@yarnpkg/plugin-version.cjs

+52
Large diffs are not rendered by default.

.yarn/versions/4a7e75d5.yml

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
releases:
2+
media-stream-library: major

.yarnrc.yml

+8-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
1-
yarnPath: '.yarn/releases/yarn-berry.cjs'
2-
31
packageExtensions:
42
readable-stream@*:
53
dependencies:
6-
events: '*'
4+
events: "*"
75
stream-browserify@*:
86
dependencies:
9-
events: '*'
7+
events: "*"
8+
9+
plugins:
10+
- path: .yarn/plugins/@yarnpkg/plugin-version.cjs
11+
spec: "@yarnpkg/plugin-version"
12+
13+
yarnPath: .yarn/releases/yarn-berry.cjs

CONTRIBUTING.md

+20

package.json

+10-5
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,14 @@
1010
"bin": {
1111
"live": "examples/node/player.js"
1212
},
13+
"files": [
14+
"dist/**/*",
15+
"examples/**/*",
16+
"rtsp-ws-server/*",
17+
"README.md",
18+
"LICENSE",
19+
"CHANGELOG.md"
20+
],
1321
"scripts": {
1422
"lint": "yarn eslint && yarn prettier:check",
1523
"test": "jest --coverage",
@@ -25,8 +33,7 @@
2533
"rtsp": "rtsp-ws-server/start.sh",
2634
"examples": "http-server examples/browser",
2735
"dev": "node sbin/dev.js",
28-
"version": "conventional-changelog -p angular -i CHANGELOG.md -s && git add CHANGELOG.md",
29-
"release": "yarn version --new-version `node node_modules/.bin/conventional-recommended-bump -p angular`"
36+
"release": "sbin/release.sh"
3037
},
3138
"repository": {
3239
"type": "git",
@@ -59,9 +66,6 @@
5966
"@typescript-eslint/eslint-plugin": "4.3.0",
6067
"@typescript-eslint/parser": "4.3.0",
6168
"babel-loader": "8.1.0",
62-
"concurrently": "5.3.0",
63-
"conventional-changelog-cli": "2.1.1",
64-
"conventional-recommended-bump": "6.0.11",
6569
"core-js": "3.6.5",
6670
"cypress": "5.5.0",
6771
"eslint": "7.12.1",
@@ -73,6 +77,7 @@
7377
"jest": "26.4.2",
7478
"mock-socket": "9.0.3",
7579
"prettier": "2.1.2",
80+
"semver": "7.3.2",
7681
"ts-jest": "26.4.3",
7782
"typescript": "4.0.5",
7883
"webpack": "5.4.0",

sbin/release.sh

100644100755
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env bash
22

33
# Generate new commit
4-
if [[ ! -d .yarn/version ]]; then
4+
if [[ ! -d .yarn/versions ]]; then
55
yarn version patch
66
fi
77
yarn version apply --all

0 commit comments

Comments
 (0)