diff --git a/package.json b/package.json index aab278807..d6dc9072e 100644 --- a/package.json +++ b/package.json @@ -26,5 +26,8 @@ "build": "lerna run build", "prepare": "husky install && yarn build --ignore demo-*", "release": "lerna publish" + }, + "bin": { + "open-process": "scripts/open-process.js" } } diff --git a/packages/mux-audio-react/package.json b/packages/mux-audio-react/package.json index 336641d56..40c7563a0 100644 --- a/packages/mux-audio-react/package.json +++ b/packages/mux-audio-react/package.json @@ -13,7 +13,7 @@ "author": "Mux, Inc.", "license": "MIT", "scripts": { - "dev:cjs": "yarn build:cjs --watch", + "dev:cjs": "open-process | yarn build:cjs --watch", "dev:types": "yarn build:types -w", "dev": "npm-run-all --parallel dev:types dev:cjs", "build:cjs": "esbuild src/index.tsx --target=es2019 --minify --bundle --sourcemap --format=cjs --outdir=dist --external:react --external:prop-types --define:PLAYER_VERSION=\"'$npm_package_version'\"", diff --git a/packages/mux-audio/package.json b/packages/mux-audio/package.json index 6805832bc..b32b7e9e6 100644 --- a/packages/mux-audio/package.json +++ b/packages/mux-audio/package.json @@ -12,7 +12,7 @@ "author": "Mux, Inc.", "license": "MIT", "scripts": { - "dev:iife": "yarn build:iife --watch", + "dev:iife": "open-process | yarn build:iife --watch", "dev:types": "yarn build:types -w", "dev": "npm-run-all --parallel dev:types dev:iife", "build:esm": "esbuild src/index.ts --target=es2019 --bundle --minify --sourcemap --format=esm --outdir=dist --out-extension:.js=.mjs --define:PLAYER_VERSION=\"'$npm_package_version'\"", diff --git a/packages/mux-video-react/package.json b/packages/mux-video-react/package.json index 0a89ebbb2..2c7033862 100644 --- a/packages/mux-video-react/package.json +++ b/packages/mux-video-react/package.json @@ -13,7 +13,7 @@ "author": "Mux, Inc.", "license": "MIT", "scripts": { - "dev:cjs": "yarn build:cjs --watch", + "dev:cjs": "open-process | yarn build:cjs --watch", "dev:types": "yarn build:types -w", "dev": "npm-run-all --parallel dev:types dev:cjs", "build:cjs": "esbuild src/index.tsx --target=es2019 --minify --bundle --sourcemap --format=cjs --outdir=dist --external:react --external:prop-types --define:PLAYER_VERSION=\"'$npm_package_version'\"", diff --git a/packages/mux-video/package.json b/packages/mux-video/package.json index 3b2db0887..76ac51227 100644 --- a/packages/mux-video/package.json +++ b/packages/mux-video/package.json @@ -13,7 +13,7 @@ "author": "Mux, Inc.", "license": "MIT", "scripts": { - "dev:iife": "yarn build:iife --watch", + "dev:iife": "open-process | yarn build:iife --watch", "dev:types": "yarn build:types -w", "dev": "npm-run-all --parallel dev:types dev:iife", "build:esm": "esbuild src/index.ts --target=es2019 --bundle --minify --sourcemap --format=esm --outdir=dist --out-extension:.js=.mjs --define:PLAYER_VERSION=\"'$npm_package_version'\"", diff --git a/packages/playback-core/package.json b/packages/playback-core/package.json index 38cd419f8..dae80249f 100644 --- a/packages/playback-core/package.json +++ b/packages/playback-core/package.json @@ -13,7 +13,7 @@ "author": "Mux, Inc.", "license": "MIT", "scripts": { - "dev:cjs": "yarn build:cjs --watch", + "dev:cjs": "open-process | yarn build:cjs --watch", "dev:types": "yarn build:types -w", "dev": "npm-run-all --parallel dev:types dev:cjs", "build:cjs": "esbuild src/index.ts --target=es2019 --minify --bundle --sourcemap --format=cjs --outdir=dist --external:mux-embed --external:hls.js", diff --git a/scripts/open-process.js b/scripts/open-process.js new file mode 100755 index 000000000..eadfa8e2b --- /dev/null +++ b/scripts/open-process.js @@ -0,0 +1,5 @@ +#!/usr/bin/env node +"use strict"; + +setInterval(() => {}, 1 << 30); +console.info("stdin open?");