mediasoup-client 3.23.0 → 3.23.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/npm-scripts.mjs +12 -2
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
package/lib/index.js
CHANGED
package/npm-scripts.mjs
CHANGED
|
@@ -77,6 +77,7 @@ async function run() {
|
|
|
77
77
|
}
|
|
78
78
|
|
|
79
79
|
case 'lint': {
|
|
80
|
+
replaceVersion();
|
|
80
81
|
lint();
|
|
81
82
|
|
|
82
83
|
break;
|
|
@@ -170,6 +171,14 @@ function buildTypescript({ force, args = '' }) {
|
|
|
170
171
|
|
|
171
172
|
// Generate .js CommonJS code and .d.ts TypeScript declaration files in lib/.
|
|
172
173
|
executeCmd(`tsc ${args}`);
|
|
174
|
+
|
|
175
|
+
// NOTE: This must happen here (and not just in the `release` task) because
|
|
176
|
+
// the published tarball is built in GitHub Actions: `npm publish` runs the
|
|
177
|
+
// `prepare` script, which transpiles a fresh lib/ (lib/ is gitignored, so
|
|
178
|
+
// whatever `release` patched locally never reaches CI). `prepare` is the
|
|
179
|
+
// last hook NPM runs before assembling the tarball, so replacing the
|
|
180
|
+
// version right after `tsc` is the only reliable place.
|
|
181
|
+
replaceVersion();
|
|
173
182
|
}
|
|
174
183
|
|
|
175
184
|
function watchTypescript({ args = '' } = {}) {
|
|
@@ -321,8 +330,9 @@ async function release({ args = '' } = {}) {
|
|
|
321
330
|
// Bump the version in package.json + package-lock.json.
|
|
322
331
|
executeCmd(`npm version ${version} --no-git-tag-version`);
|
|
323
332
|
|
|
324
|
-
//
|
|
325
|
-
|
|
333
|
+
// NOTE: No need to replace the version in the transpiled JS here: lib/ is
|
|
334
|
+
// gitignored and the published tarball is built from scratch in GitHub
|
|
335
|
+
// Actions, where `buildTypescript()` does the replacement.
|
|
326
336
|
|
|
327
337
|
// Commit the bump, tag it, and push both. The pushed tag triggers
|
|
328
338
|
// `mediasoup-client-npm-publish` workflow, which checks, creates the GitHub
|