@hubol/smooch 1.0.0-beta.10 → 1.0.0-beta.11

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.
Files changed (3) hide show
  1. package/README.md +3 -1
  2. package/index.js +8 -4
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -51,4 +51,6 @@ List these commands!
51
51
  - Supports configurable templates
52
52
  - Keeps a cache for faster start-up
53
53
  - Build tool agnostic
54
- - Config file with schema
54
+ - Config file with schema
55
+
56
+ <!-- To publish, use e.g. `npm version 1.0.0-beta.11` -->
package/index.js CHANGED
@@ -52554,7 +52554,11 @@ function convertAudio(rawOptions, work) {
52554
52554
  ? filesToConvertResult.files
52555
52555
  : yield gwob_1.Gwob.files(options.glob);
52556
52556
  const uniqueFiles = [...new Set(filesToConvert)];
52557
- logger.log(`Found ${filesToConvert.length} file(s) to convert to formats: ${chalk_1.default.white((0, describe_list_1.describeList)(options.convert.map(x => x.format)))}`);
52557
+ logger.log(`Found ${uniqueFiles.length} file(s) to convert to formats: ${chalk_1.default.white((0, describe_list_1.describeList)(options.convert.map(x => x.format)))}`);
52558
+ if (uniqueFiles.length === 0) {
52559
+ logger.log(`Aborting, as there are no files to convert.`);
52560
+ return;
52561
+ }
52558
52562
  yield Promise.all([
52559
52563
  ...options.convert.map(({ directory }) => fs_1.Fs.mkdir(directory, { recursive: true })),
52560
52564
  ...options.convert
@@ -52571,7 +52575,7 @@ function convertAudio(rawOptions, work) {
52571
52575
  yield fs_1.Fs.mkdir(fs_1.Fs.dirname(dstFile), { recursive: true });
52572
52576
  yield audio_file_converter_1.AudioFileConverter.convert(path_1.Path.File.create(srcFile), dstFile);
52573
52577
  }))));
52574
- logger.log(`Done converting ${filesToConvert.length} file(s).`);
52578
+ logger.log(`Done converting ${uniqueFiles.length} file(s).`);
52575
52579
  const [files, zipFiles] = yield Promise.all([
52576
52580
  getTemplateContextFilesFromDirectories(options),
52577
52581
  createZipFiles(options.convert.filter(isZipConvertOption)),
@@ -52668,7 +52672,7 @@ var FilesToConvert;
52668
52672
  for (const w of work) {
52669
52673
  if (w.type === 'AcceptedNascent')
52670
52674
  return { type: 'all' };
52671
- files.push(...w.assetMatches.map(x => x.path));
52675
+ files.push(...w.assetMatches.filter(x => x.type !== 'delete').map(x => x.path));
52672
52676
  }
52673
52677
  return {
52674
52678
  type: 'some',
@@ -86084,7 +86088,7 @@ module.exports = JSON.parse('[[[0,44],"disallowed_STD3_valid"],[[45,46],"valid"]
86084
86088
  /***/ ((module) => {
86085
86089
 
86086
86090
  "use strict";
86087
- module.exports = JSON.parse('{"name":"@hubol/smooch","version":"1.0.0-beta.10","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":{"@jimp/custom":"^0.22.10","@jimp/types":"^0.22.10","@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","fluent-ffmpeg":"^2.1.2","glob":"^10.3.3","image-size":"^1.0.2","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"}}');
86091
+ module.exports = JSON.parse('{"name":"@hubol/smooch","version":"1.0.0-beta.11","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":{"@jimp/custom":"^0.22.10","@jimp/types":"^0.22.10","@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","fluent-ffmpeg":"^2.1.2","glob":"^10.3.3","image-size":"^1.0.2","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"}}');
86088
86092
 
86089
86093
  /***/ })
86090
86094
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hubol/smooch",
3
- "version": "1.0.0-beta.10",
3
+ "version": "1.0.0-beta.11",
4
4
  "description": "Generate texture atlases, browser-compatible audio, and source code from directories",
5
5
  "bin": {
6
6
  "smooch": "index.js"