@hubol/smooch 1.0.0-beta.16 → 1.0.0-beta.18
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/index.js +21 -6
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -28730,9 +28730,16 @@ const global_1 = __webpack_require__(9648);
|
|
|
28730
28730
|
const require_module_1 = __webpack_require__(4584);
|
|
28731
28731
|
const defaultDependencies = {
|
|
28732
28732
|
"@ffmpeg-installer/ffmpeg": dependency("^1.1.0"),
|
|
28733
|
-
|
|
28733
|
+
// The deadlock I observed in 2.3.0 might have been fixed
|
|
28734
|
+
// https://cutey.zone/index.php?topic=231.msg6418#msg6418
|
|
28735
|
+
// https://github.com/parcel-bundler/watcher/releases/tag/v2.5.0
|
|
28736
|
+
// https://github.com/parcel-bundler/watcher/pull/189
|
|
28737
|
+
// In addition, 2.2.0 shipped with a stupid install script
|
|
28738
|
+
// That required consumers to have node-gyp, which needs all sorts of stupid native dependencies to work
|
|
28739
|
+
// https://github.com/parcel-bundler/watcher/issues/153
|
|
28740
|
+
"@parcel/watcher": dependency("2.5.0"),
|
|
28734
28741
|
"prettier": dependency("3.1.0"),
|
|
28735
|
-
"sharp": dependency("0.
|
|
28742
|
+
"sharp": dependency("0.33.5"),
|
|
28736
28743
|
};
|
|
28737
28744
|
const defaultDependencyVersions = Object.keys(defaultDependencies).reduce((obj, key) => {
|
|
28738
28745
|
obj[key] = defaultDependencies[key];
|
|
@@ -28972,11 +28979,19 @@ const chalk_1 = __importDefault(__webpack_require__(4061));
|
|
|
28972
28979
|
const tree_kill_1 = __importDefault(__webpack_require__(28));
|
|
28973
28980
|
const logger_1 = __webpack_require__(6266);
|
|
28974
28981
|
class ProcessWithLogger {
|
|
28975
|
-
constructor(
|
|
28982
|
+
constructor(executablePath, command = [], options = {}) {
|
|
28976
28983
|
this._exited = false;
|
|
28977
28984
|
this._exitCode = null;
|
|
28978
|
-
|
|
28979
|
-
|
|
28985
|
+
// NodeJS was patched to prevent executing .cmd executables on Windows without shell: true
|
|
28986
|
+
// https://nodejs.org/en/blog/vulnerability/april-2024-security-releases-2
|
|
28987
|
+
// Other people doing stupid shit like me were affected
|
|
28988
|
+
// https://github.com/nodejs/node/issues/52554#issuecomment-2060024574
|
|
28989
|
+
// I do not understand the consequences of shell: true :-/
|
|
28990
|
+
if (executablePath.endsWith(".cmd")) {
|
|
28991
|
+
options.shell = true;
|
|
28992
|
+
}
|
|
28993
|
+
this._childProcess = (0, child_process_1.spawn)(executablePath, command, options);
|
|
28994
|
+
const commandTitle = `${executablePath}${command.length > 0 ? " " : ""}${command.join(" ")}`;
|
|
28980
28995
|
// This might explain why stdout is nullable: https://stackoverflow.com/a/29024376
|
|
28981
28996
|
const logger = new logger_1.Logger(commandTitle, "blue");
|
|
28982
28997
|
this.stdOut = new TestStream(this._childProcess.stdout, { logger, type: "log" });
|
|
@@ -52946,7 +52961,7 @@ class MaxRectsPacker {
|
|
|
52946
52961
|
/***/ ((module) => {
|
|
52947
52962
|
|
|
52948
52963
|
"use strict";
|
|
52949
|
-
module.exports = JSON.parse('{"name":"@hubol/smooch","version":"1.0.0-beta.
|
|
52964
|
+
module.exports = JSON.parse('{"name":"@hubol/smooch","version":"1.0.0-beta.18","description":"Generate texture atlases, browser-compatible audio, and source code from directories","scripts":{"build":"npm run build:json-schema && npm run build:template-api-dts && npm run build:bundle && npm run build:distributable-package-json && npm run build:npm-readme && npm run build:npm-pack","build:json-schema":"ts-node ./tools/generate-config-schema.ts","build:template-api-dts":"npx tsup lib/template-api.ts --dts-only --dts-resolve","build:bundle":"webpack","build:distributable-package-json":"ts-node ./tools/generate-distributable-package-json.ts","build:npm-readme":"ts-node ./tools/generate-npm-readme.ts","build:npm-pack":"ts-node ./tools/pack.ts ../smooch.tgz","dev:build-and-test":"npm run build && npm run test","dev:start":"node --nolazy -r ts-node/register ./lib/main/dev.ts","dev:update-readme":"ts-node ./lib/main/dev.ts ../../tools/update-readme-md.ts","test":"ts-node --transpileOnly test/test.ts"},"bin":{"smooch":"index.js"},"author":"Hubol","license":"ISC","repository":{"type":"git","url":"https://github.com/hubol/smooch.git"},"devDependencies":{"@types/archiver":"^5.3.2","@types/fluent-ffmpeg":"^2.1.21","@types/sharp":"^0.31.1","archiver":"^6.0.0","chalk":"^4.1.2","change-case":"^4.1.2","dprint":"^0.47.6","fluent-ffmpeg":"^2.1.2","glob":"^10.3.3","maxrects-packer":"^2.7.3","minimatch":"^9.0.3","superstruct":"^0.15.5","tree-kill":"^1.2.2","ts-loader":"^9.4.4","ts-node":"^10.9.1","tsup":"^7.2.0","typescript":"^5.0.4","typescript-json-schema":"^0.56.0","webpack":"^5.88.2","webpack-cli":"^5.1.4","webpack-shebang-plugin":"^1.1.8"}}');
|
|
52950
52965
|
|
|
52951
52966
|
/***/ })
|
|
52952
52967
|
|