From 9bc2570b23eac0fe972c4b8b6d9669268a0606bc Mon Sep 17 00:00:00 2001 From: Wadim Wawrzenczak Date: Thu, 12 Dec 2024 14:48:19 +0100 Subject: [PATCH 1/8] Add script to update Jest calls in all packages in bulk --- scripts/binary-scripts-mapping.js | 53 +++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 scripts/binary-scripts-mapping.js diff --git a/scripts/binary-scripts-mapping.js b/scripts/binary-scripts-mapping.js new file mode 100644 index 000000000..3c33cc911 --- /dev/null +++ b/scripts/binary-scripts-mapping.js @@ -0,0 +1,53 @@ +const fs = require("fs"); + +// usage: node scripts/binary-scripts.js +// This script will modify the package.json files of all packages in the `packages` directory +// to use Jest js binary `node_modules/jest/bin/jest.js` instead of the pnpm shell wrapper +// `node_modules/.bin/jest` to avoid the issue described in https://github.com/pnpm/pnpm/issues/8863; +// It will also print a set of all scripts from all packages for visual inspection +// in case any further bulk fixes are needed - to use mapping, add a new entry to the `scriptsMap` object +// with the original script as the key and the new script as the value + +const scriptsSet = new Set(); + +const scriptsMap = new Map([ + [`jest`, `node node_modules/jest/bin/jest.js`], + [ + `LANG=en_US.UTF8 NODE_OPTIONS="$NODE_OPTIONS --experimental-vm-modules" jest`, + `LANG=en_US.UTF8 node --experimental-vm-modules node_modules/jest/bin/jest.js`, + ], + [ + `LANG=en_US.UTF8 NODE_OPTIONS="$NODE_OPTIONS --experimental-vm-modules" jest --testEnvironment node`, + `LANG=en_US.UTF8 node --experimental-vm-modules node_modules/jest/bin/jest.js --testEnvironment node`, + ], +]); + +const packageFiles = fs + .readdirSync("packages") + .map((package) => `packages/${package}/package.json`) + .filter((file) => fs.existsSync(file)); + +for (const path of packageFiles) { + const data = fs.readFileSync(path, "utf8"); + const pkg = JSON.parse(data); + + const { scripts } = pkg; + if (!scripts) { + continue; + } + + let didModify = false; + for (const [scriptName, scriptValue] of Object.entries(scripts)) { + if (scriptsMap.has(scriptValue)) { + scripts[scriptName] = scriptsMap.get(scriptValue); + didModify = true; + } + } + if (didModify) { + fs.writeFileSync(path, JSON.stringify(pkg, null, 4)); + } + + scriptsSet.add(...Object.values(scripts)); +} + +console.log([...scriptsSet].sort().join("\n")); From 8ab0cc5d22be795aa51f69f64785569e04f832af Mon Sep 17 00:00:00 2001 From: Wadim Wawrzenczak Date: Thu, 12 Dec 2024 14:49:19 +0100 Subject: [PATCH 2/8] Update calls to Jest in all packages to use `jest/bin/jest.js` instead of `.bin/jest` --- packages/ilib-assemble/package.json | 2 +- packages/ilib-common/package.json | 2 +- packages/ilib-data-utils/package.json | 2 +- packages/ilib-env/package.json | 2 +- packages/ilib-lint-common/package.json | 2 +- packages/ilib-loader/package.json | 2 +- packages/ilib-loctool-android-layout/package.json | 2 +- packages/ilib-loctool-android-resource/package.json | 2 +- packages/ilib-loctool-csv/package.json | 2 +- packages/ilib-loctool-ghfm/package.json | 2 +- packages/ilib-loctool-haml/package.json | 2 +- packages/ilib-loctool-html/package.json | 2 +- packages/ilib-loctool-java/package.json | 2 +- packages/ilib-loctool-javascript-resource/package.json | 2 +- packages/ilib-loctool-javascript/package.json | 2 +- packages/ilib-loctool-json/package.json | 2 +- packages/ilib-loctool-jst/package.json | 2 +- packages/ilib-loctool-jsx/package.json | 2 +- packages/ilib-loctool-mrkdwn/package.json | 2 +- packages/ilib-loctool-objectivec/package.json | 2 +- packages/ilib-loctool-po/package.json | 2 +- packages/ilib-loctool-properties/package.json | 2 +- packages/ilib-loctool-ruby-ilib/package.json | 2 +- packages/ilib-loctool-salesforce-metaxml/package.json | 2 +- packages/ilib-loctool-strings/package.json | 2 +- packages/ilib-loctool-swift/package.json | 2 +- packages/ilib-loctool-xml/package.json | 2 +- packages/ilib-loctool-yaml-resource/package.json | 2 +- packages/ilib-loctool-yaml/package.json | 2 +- packages/ilib-po/package.json | 2 +- packages/ilib-tools-common/package.json | 2 +- packages/ilib-yaml/package.json | 2 +- packages/message-accumulator/package.json | 2 +- packages/tmxtool/package.json | 2 +- 34 files changed, 34 insertions(+), 34 deletions(-) diff --git a/packages/ilib-assemble/package.json b/packages/ilib-assemble/package.json index e077d3cab..ffd0b19ba 100644 --- a/packages/ilib-assemble/package.json +++ b/packages/ilib-assemble/package.json @@ -50,7 +50,7 @@ }, "scripts": { "test": "pnpm test:cli", - "test:cli": "LANG=en_US.UTF8 NODE_OPTIONS=\"$NODE_OPTIONS --experimental-vm-modules\" jest --testEnvironment node", + "test:cli": "LANG=en_US.UTF8 node --experimental-vm-modules node_modules/jest/bin/jest.js --testEnvironment node", "test:watch": "LANG=en_US.UTF8 NODE_OPTIONS=\"$NODE_OPTIONS --experimental-vm-modules\" jest --testEnvironment node --watch", "debug": "NODE_OPTIONS=\"$NODE_OPTIONS --experimental-vm-modules --inspect-brk\" jest --testEnvironment node -i", "clean": "git clean -f -d src test ; rm -rf lib *.tgz", diff --git a/packages/ilib-common/package.json b/packages/ilib-common/package.json index 79a75d64e..161bc4ec8 100644 --- a/packages/ilib-common/package.json +++ b/packages/ilib-common/package.json @@ -59,7 +59,7 @@ "build:test": "webpack-cli --config webpack-test.config.js", "build:pkg": "echo '{\"type\": \"commonjs\"}' > lib/package.json", "test": "pnpm test:all", - "test:jest": "LANG=en_US.UTF8 NODE_OPTIONS=\"$NODE_OPTIONS --experimental-vm-modules\" jest --testEnvironment node", + "test:jest": "LANG=en_US.UTF8 node --experimental-vm-modules node_modules/jest/bin/jest.js --testEnvironment node", "test:karma": "LANG=en_US.UTF8 NODE_OPTIONS=\"$NODE_OPTIONS --experimental-vm-modules\" karma start --reporters dots", "test:cli": "LANG=en_US.UTF8 pnpm build:dev && pnpm test:jest", "test:web": "pnpm test:karma --single-run", diff --git a/packages/ilib-data-utils/package.json b/packages/ilib-data-utils/package.json index 6ff429a6c..e50aa1f35 100644 --- a/packages/ilib-data-utils/package.json +++ b/packages/ilib-data-utils/package.json @@ -56,7 +56,7 @@ "build": "pnpm build:prod", "build:prod": "grunt babel --mode=prod", "build:dev": "grunt babel --mode=dev", - "test": "LANG=en_US.UTF8 NODE_OPTIONS=\"$NODE_OPTIONS --experimental-vm-modules\" jest --testEnvironment node", + "test": "LANG=en_US.UTF8 node --experimental-vm-modules node_modules/jest/bin/jest.js --testEnvironment node", "test:watch": "LANG=en_US.UTF8 NODE_OPTIONS=\"$NODE_OPTIONS --experimental-vm-modules\" jest --testEnvironment node --watch", "debug": "NODE_OPTIONS=\"$NODE_OPTIONS --experimental-vm-modules --inspect-brk\" jest --testEnvironment node -i", "clean": "git clean -f -d * ; rm -rf lib", diff --git a/packages/ilib-env/package.json b/packages/ilib-env/package.json index eb56b7809..8472559d2 100644 --- a/packages/ilib-env/package.json +++ b/packages/ilib-env/package.json @@ -59,7 +59,7 @@ "build:test": "webpack-cli --config webpack-test.config.js", "build:pkg": "mkdir -p lib && echo '{\"type\": \"commonjs\"}' > lib/package.json", "test": "pnpm run test:all", - "test:jest": "LANG=en_US.UTF8 NODE_OPTIONS=\"$NODE_OPTIONS --experimental-vm-modules\" jest --testEnvironment node", + "test:jest": "LANG=en_US.UTF8 node --experimental-vm-modules node_modules/jest/bin/jest.js --testEnvironment node", "test:karma": "LANG=en_US.UTF8 NODE_OPTIONS=\"$NODE_OPTIONS --experimental-vm-modules\" karma start --reporters dots", "test:cli": "LANG=en_US.UTF8 npm-run-all --npm-path pnpm build:dev test:jest", "test:web": "pnpm test:karma --single-run", diff --git a/packages/ilib-lint-common/package.json b/packages/ilib-lint-common/package.json index ed903f73c..c7451bfc5 100644 --- a/packages/ilib-lint-common/package.json +++ b/packages/ilib-lint-common/package.json @@ -52,7 +52,7 @@ "node": ">=14.0.0" }, "scripts": { - "test": "LANG=en_US.UTF8 NODE_OPTIONS=\"$NODE_OPTIONS --experimental-vm-modules\" jest", + "test": "LANG=en_US.UTF8 node --experimental-vm-modules node_modules/jest/bin/jest.js", "test:watch": "LANG=en_US.UTF8 NODE_OPTIONS=\"$NODE_OPTIONS --experimental-vm-modules\" jest --watch", "debug": "LANG=en_US.UTF8 NODE_OPTIONS=\"$NODE_OPTIONS --experimental-vm-modules --inspect-brk\" jest -i", "clean": "git clean -f -d src test", diff --git a/packages/ilib-loader/package.json b/packages/ilib-loader/package.json index 118c948cb..1ccdd19a7 100644 --- a/packages/ilib-loader/package.json +++ b/packages/ilib-loader/package.json @@ -56,7 +56,7 @@ "build:test": "webpack-cli --config webpack-test.config.js", "build:pkg": "echo '{\"type\": \"commonjs\"}' > lib/package.json", "test": "echo Success: TODO fix this to pnpm test:all", - "test:jest": "LANG=en_US.UTF8 NODE_OPTIONS=\"$NODE_OPTIONS --experimental-vm-modules\" jest --testEnvironment node", + "test:jest": "LANG=en_US.UTF8 node --experimental-vm-modules node_modules/jest/bin/jest.js --testEnvironment node", "test:karma": "LANG=en_US.UTF8 NODE_OPTIONS=\"$NODE_OPTIONS --experimental-vm-modules\" karma start --reporters dots", "test:cli": "LANG=en_US.UTF8 npm-run-all --npm-path pnpm build:dev test:jest", "test:web": "pnpm test:karma --single-run", diff --git a/packages/ilib-loctool-android-layout/package.json b/packages/ilib-loctool-android-layout/package.json index d7ee98102..5c9380049 100644 --- a/packages/ilib-loctool-android-layout/package.json +++ b/packages/ilib-loctool-android-layout/package.json @@ -43,7 +43,7 @@ "url": "https://github.com/iLib-js/ilib-mono.git" }, "scripts": { - "test": "jest", + "test": "node node_modules/jest/bin/jest.js", "test:watch": "jest --watch", "debug": "NODE_OPTIONS=\"$NODE_OPTIONS --inspect-brk\" jest -i", "clean": "git clean -f -d *" diff --git a/packages/ilib-loctool-android-resource/package.json b/packages/ilib-loctool-android-resource/package.json index ff24af97a..ac79477a7 100644 --- a/packages/ilib-loctool-android-resource/package.json +++ b/packages/ilib-loctool-android-resource/package.json @@ -43,7 +43,7 @@ "url": "https://github.com/iLib-js/ilib-mono.git" }, "scripts": { - "test": "jest", + "test": "node node_modules/jest/bin/jest.js", "test:watch": "jest --watch", "debug": "NODE_OPTIONS=\"$NODE_OPTIONS --inspect-brk\" jest -i", "clean": "git clean -f -d *" diff --git a/packages/ilib-loctool-csv/package.json b/packages/ilib-loctool-csv/package.json index 6261ef584..2d5608890 100644 --- a/packages/ilib-loctool-csv/package.json +++ b/packages/ilib-loctool-csv/package.json @@ -42,7 +42,7 @@ "url": "https://github.com/iLib-js/ilib-mono.git" }, "scripts": { - "test": "jest", + "test": "node node_modules/jest/bin/jest.js", "test:watch": "jest --watch", "debug": "NODE_OPTIONS=\"$NODE_OPTIONS --inspect-brk\" jest -i", "clean": "git clean -f -d *" diff --git a/packages/ilib-loctool-ghfm/package.json b/packages/ilib-loctool-ghfm/package.json index c731f5d4e..a0478a3cf 100644 --- a/packages/ilib-loctool-ghfm/package.json +++ b/packages/ilib-loctool-ghfm/package.json @@ -44,7 +44,7 @@ "url": "https://github.com/iLib-js/ilib-mono.git" }, "scripts": { - "test": "jest", + "test": "node node_modules/jest/bin/jest.js", "test:watch": "jest --watch", "debug": "NODE_OPTIONS=\"$NODE_OPTIONS --inspect-brk\" jest -i", "clean": "git clean -f -d * ; rm -rf test/testfiles/fr-FR test/testfiles/de-DE" diff --git a/packages/ilib-loctool-haml/package.json b/packages/ilib-loctool-haml/package.json index abd9d40d8..efc893857 100644 --- a/packages/ilib-loctool-haml/package.json +++ b/packages/ilib-loctool-haml/package.json @@ -42,7 +42,7 @@ "url": "https://github.com/iLib-js/ilib-mono.git" }, "scripts": { - "test": "jest", + "test": "node node_modules/jest/bin/jest.js", "test:watch": "jest --watch", "debug": "NODE_OPTIONS=\"$NODE_OPTIONS --inspect-brk\" jest -i", "clean": "git clean -f -d *" diff --git a/packages/ilib-loctool-html/package.json b/packages/ilib-loctool-html/package.json index 6ab1d0c66..41f4c262e 100644 --- a/packages/ilib-loctool-html/package.json +++ b/packages/ilib-loctool-html/package.json @@ -41,7 +41,7 @@ "url": "https://github.com/iLib-js/ilib-mono.git" }, "scripts": { - "test": "jest", + "test": "node node_modules/jest/bin/jest.js", "test:watch": "jest --watch", "debug": "NODE_OPTIONS=\"$NODE_OPTIONS --inspect-brk\" jest -i", "clean": "git clean -f -d *" diff --git a/packages/ilib-loctool-java/package.json b/packages/ilib-loctool-java/package.json index eab8f1681..aac08e727 100644 --- a/packages/ilib-loctool-java/package.json +++ b/packages/ilib-loctool-java/package.json @@ -42,7 +42,7 @@ "url": "https://github.com/iLib-js/ilib-mono.git" }, "scripts": { - "test": "jest", + "test": "node node_modules/jest/bin/jest.js", "test:watch": "jest --watch", "debug": "NODE_OPTIONS=\"$NODE_OPTIONS --inspect-brk\" jest -i", "clean": "git clean -f -d *" diff --git a/packages/ilib-loctool-javascript-resource/package.json b/packages/ilib-loctool-javascript-resource/package.json index d7371950a..95e2a7859 100644 --- a/packages/ilib-loctool-javascript-resource/package.json +++ b/packages/ilib-loctool-javascript-resource/package.json @@ -42,7 +42,7 @@ "url": "https://github.com/iLib-js/ilib-mono.git" }, "scripts": { - "test": "jest", + "test": "node node_modules/jest/bin/jest.js", "test:watch": "jest --watch", "debug": "NODE_OPTIONS=\"$NODE_OPTIONS --inspect-brk\" jest -i", "clean": "git clean -f -d *" diff --git a/packages/ilib-loctool-javascript/package.json b/packages/ilib-loctool-javascript/package.json index 253c91bfc..0b1e1a85a 100644 --- a/packages/ilib-loctool-javascript/package.json +++ b/packages/ilib-loctool-javascript/package.json @@ -42,7 +42,7 @@ "url": "https://github.com/iLib-js/ilib-mono.git" }, "scripts": { - "test": "jest", + "test": "node node_modules/jest/bin/jest.js", "test:watch": "jest --watch", "debug": "NODE_OPTIONS=\"$NODE_OPTIONS --inspect-brk\" jest -i", "clean": "git clean -f -d *" diff --git a/packages/ilib-loctool-json/package.json b/packages/ilib-loctool-json/package.json index 3cfbfe119..927749bf4 100644 --- a/packages/ilib-loctool-json/package.json +++ b/packages/ilib-loctool-json/package.json @@ -43,7 +43,7 @@ "url": "https://github.com/iLib-js/ilib-mono.git" }, "scripts": { - "test": "jest", + "test": "node node_modules/jest/bin/jest.js", "test:watch": "jest --watch", "debug": "NODE_OPTIONS=\"$NODE_OPTIONS --inspect-brk\" jest -i", "clean": "git clean -f -d test" diff --git a/packages/ilib-loctool-jst/package.json b/packages/ilib-loctool-jst/package.json index e0d742a07..54e4444ef 100644 --- a/packages/ilib-loctool-jst/package.json +++ b/packages/ilib-loctool-jst/package.json @@ -42,7 +42,7 @@ "url": "https://github.com/iLib-js/ilib-mono.git" }, "scripts": { - "test": "jest", + "test": "node node_modules/jest/bin/jest.js", "test:watch": "jest --watch", "debug": "NODE_OPTIONS=\"$NODE_OPTIONS --inspect-brk\" jest -i", "clean": "git clean -f -d *" diff --git a/packages/ilib-loctool-jsx/package.json b/packages/ilib-loctool-jsx/package.json index 13cf37381..374ff448b 100644 --- a/packages/ilib-loctool-jsx/package.json +++ b/packages/ilib-loctool-jsx/package.json @@ -43,7 +43,7 @@ "url": "https://github.com/iLib-js/ilib-mono.git" }, "scripts": { - "test": "jest", + "test": "node node_modules/jest/bin/jest.js", "test:watch": "jest --watch", "debug": "NODE_OPTIONS=\"$NODE_OPTIONS --inspect-brk\" jest -i", "clean": "git clean -f -d *" diff --git a/packages/ilib-loctool-mrkdwn/package.json b/packages/ilib-loctool-mrkdwn/package.json index b9eb9368a..53b85e7b3 100644 --- a/packages/ilib-loctool-mrkdwn/package.json +++ b/packages/ilib-loctool-mrkdwn/package.json @@ -46,7 +46,7 @@ "url": "https://github.com/iLib-js/ilib-mono.git" }, "scripts": { - "test": "jest", + "test": "node node_modules/jest/bin/jest.js", "test:watch": "jest --watch", "debug": "NODE_OPTIONS=\"$NODE_OPTIONS --inspect-brk\" jest -i", "clean": "git clean -f -d * ; rm -rf test/testfiles/fr-FR test/testfiles/de-DE" diff --git a/packages/ilib-loctool-objectivec/package.json b/packages/ilib-loctool-objectivec/package.json index 4b9b5df07..940f40d22 100644 --- a/packages/ilib-loctool-objectivec/package.json +++ b/packages/ilib-loctool-objectivec/package.json @@ -40,7 +40,7 @@ "url": "https://github.com/iLib-js/ilib-mono.git" }, "scripts": { - "test": "jest", + "test": "node node_modules/jest/bin/jest.js", "test:watch": "jest --watch", "debug": "NODE_OPTIONS=\"$NODE_OPTIONS --inspect-brk\" jest -i", "clean": "git clean -f -d *" diff --git a/packages/ilib-loctool-po/package.json b/packages/ilib-loctool-po/package.json index 7137791d4..df4bc91f5 100644 --- a/packages/ilib-loctool-po/package.json +++ b/packages/ilib-loctool-po/package.json @@ -45,7 +45,7 @@ "url": "https://github.com/iLib-js/ilib-mono.git" }, "scripts": { - "test": "jest", + "test": "node node_modules/jest/bin/jest.js", "test:watch": "jest --watch", "debug": "NODE_OPTIONS=\"$NODE_OPTIONS --inspect-brk\" jest -i", "clean": "git clean -f -d test" diff --git a/packages/ilib-loctool-properties/package.json b/packages/ilib-loctool-properties/package.json index 31ddbe8e3..ae7e285a9 100644 --- a/packages/ilib-loctool-properties/package.json +++ b/packages/ilib-loctool-properties/package.json @@ -42,7 +42,7 @@ "url": "https://github.com/iLib-js/ilib-mono.git" }, "scripts": { - "test": "jest", + "test": "node node_modules/jest/bin/jest.js", "test:watch": "jest --watch", "debug": "NODE_OPTIONS=\"$NODE_OPTIONS --inspect-brk\" jest", "clean": "git clean -f -d *" diff --git a/packages/ilib-loctool-ruby-ilib/package.json b/packages/ilib-loctool-ruby-ilib/package.json index 53bf4c472..82e8ca0fe 100644 --- a/packages/ilib-loctool-ruby-ilib/package.json +++ b/packages/ilib-loctool-ruby-ilib/package.json @@ -41,7 +41,7 @@ "url": "https://github.com/iLib-js/ilib-mono.git" }, "scripts": { - "test": "jest", + "test": "node node_modules/jest/bin/jest.js", "test:watch": "jest --watch", "debug": "NODE_OPTIONS=\"$NODE_OPTIONS --inspect-brk\" jest -i", "clean": "git clean -f -d *" diff --git a/packages/ilib-loctool-salesforce-metaxml/package.json b/packages/ilib-loctool-salesforce-metaxml/package.json index 50e9842dd..95d94a986 100644 --- a/packages/ilib-loctool-salesforce-metaxml/package.json +++ b/packages/ilib-loctool-salesforce-metaxml/package.json @@ -46,7 +46,7 @@ "url": "https://github.com/iLib-js/ilib-mono.git" }, "scripts": { - "test": "jest", + "test": "node node_modules/jest/bin/jest.js", "test:watch": "jest --watch", "debug": "NODE_OPTIONS=\"$NODE_OPTIONS --inspect-brk\" jest -i", "clean": "git clean -f -d *" diff --git a/packages/ilib-loctool-strings/package.json b/packages/ilib-loctool-strings/package.json index d47e59706..4578656b4 100644 --- a/packages/ilib-loctool-strings/package.json +++ b/packages/ilib-loctool-strings/package.json @@ -41,7 +41,7 @@ "url": "https://github.com/iLib-js/ilib-mono.git" }, "scripts": { - "test": "jest", + "test": "node node_modules/jest/bin/jest.js", "test:watch": "jest --watch", "debug": "NODE_OPTIONS=\"$NODE_OPTIONS --inspect-brk\" jest -i", "clean": "git clean -f -d *" diff --git a/packages/ilib-loctool-swift/package.json b/packages/ilib-loctool-swift/package.json index 2c1edff94..57583dd68 100644 --- a/packages/ilib-loctool-swift/package.json +++ b/packages/ilib-loctool-swift/package.json @@ -42,7 +42,7 @@ }, "scripts": { "test": "pnpm test:jest", - "test:jest": "LANG=en_US.UTF8 NODE_OPTIONS=\"$NODE_OPTIONS --experimental-vm-modules\" jest", + "test:jest": "LANG=en_US.UTF8 node --experimental-vm-modules node_modules/jest/bin/jest.js", "test:watch": "pnpm test:jest --watch", "debug": "LANG=en_US.UTF8 NODE_OPTIONS=\"$NODE_OPTIONS --experimental-vm-modules --inspect-brk\" jest -i", "clean": "git clean -f -d *" diff --git a/packages/ilib-loctool-xml/package.json b/packages/ilib-loctool-xml/package.json index e28da69ba..53aeeefae 100644 --- a/packages/ilib-loctool-xml/package.json +++ b/packages/ilib-loctool-xml/package.json @@ -45,7 +45,7 @@ }, "scripts": { "test": "pnpm test:jest", - "test:jest": "LANG=en_US.UTF8 NODE_OPTIONS=\"$NODE_OPTIONS --experimental-vm-modules\" jest", + "test:jest": "LANG=en_US.UTF8 node --experimental-vm-modules node_modules/jest/bin/jest.js", "test:watch": "pnpm test:jest --watch", "debug": "LANG=en_US.UTF8 NODE_OPTIONS=\"$NODE_OPTIONS --experimental-vm-modules --inspect-brk\" jest -i", "clean": "git clean -f -d test" diff --git a/packages/ilib-loctool-yaml-resource/package.json b/packages/ilib-loctool-yaml-resource/package.json index 0d293a50b..bbd015ef7 100644 --- a/packages/ilib-loctool-yaml-resource/package.json +++ b/packages/ilib-loctool-yaml-resource/package.json @@ -41,7 +41,7 @@ "url": "https://github.com/iLib-js/ilib-mono.git" }, "scripts": { - "test": "jest", + "test": "node node_modules/jest/bin/jest.js", "test:watch": "jest --watch", "debug": "NODE_OPTIONS=\"$NODE_OPTIONS --inspect-brk\" jest -i", "clean": "git clean -f -d *" diff --git a/packages/ilib-loctool-yaml/package.json b/packages/ilib-loctool-yaml/package.json index ca7ad2486..8c9dbb69b 100644 --- a/packages/ilib-loctool-yaml/package.json +++ b/packages/ilib-loctool-yaml/package.json @@ -40,7 +40,7 @@ "url": "https://github.com/iLib-js/ilib-mono.git" }, "scripts": { - "test": "jest", + "test": "node node_modules/jest/bin/jest.js", "test:watch": "jest --watch", "debug": "NODE_OPTIONS=\"$NODE_OPTIONS --inspect-brk\" jest -i", "clean": "git clean -f -d *" diff --git a/packages/ilib-po/package.json b/packages/ilib-po/package.json index f09d78926..c760b64e0 100644 --- a/packages/ilib-po/package.json +++ b/packages/ilib-po/package.json @@ -47,7 +47,7 @@ "scripts": { "build": "tsc --project tsconfig.build.json", "types": "tsc", - "test": "jest", + "test": "node node_modules/jest/bin/jest.js", "test:watch": "pnpm test --watch", "debug": "node --inspect-brk node_modules/jest/bin/jest.js --runInBand", "clean": "git clean -f -d src test", diff --git a/packages/ilib-tools-common/package.json b/packages/ilib-tools-common/package.json index d55cb1545..12d238a35 100644 --- a/packages/ilib-tools-common/package.json +++ b/packages/ilib-tools-common/package.json @@ -57,7 +57,7 @@ "build:prod": "grunt babel --mode=prod && pnpm build:pkg", "build:dev": "grunt babel --mode=dev && pnpm build:pkg", "build:pkg": "echo '{\"type\": \"commonjs\"}' > lib/package.json", - "test": "LANG=en_US.UTF8 NODE_OPTIONS=\"$NODE_OPTIONS --experimental-vm-modules\" jest --testEnvironment node", + "test": "LANG=en_US.UTF8 node --experimental-vm-modules node_modules/jest/bin/jest.js --testEnvironment node", "test:watch": "pnpm test:jest --watch", "debug": "LANG=en_US.UTF8 NODE_OPTIONS=\"$NODE_OPTIONS --experimental-vm-modules --inspect-brk\" jest -i --testEnvironment node", "clean": "git clean -f -d src test; rm -rf lib", diff --git a/packages/ilib-yaml/package.json b/packages/ilib-yaml/package.json index c838b6f49..e4c6e430e 100644 --- a/packages/ilib-yaml/package.json +++ b/packages/ilib-yaml/package.json @@ -55,7 +55,7 @@ "build:pkg": "echo '{\"type\": \"commonjs\"}' > lib/package.json", "test": "pnpm test:all", "test:all": "npm-run-all --npm-path pnpm test:cli", - "test:cli": "LANG=en_US.UTF8 NODE_OPTIONS=\"$NODE_OPTIONS --experimental-vm-modules\" jest --testEnvironment node", + "test:cli": "LANG=en_US.UTF8 node --experimental-vm-modules node_modules/jest/bin/jest.js --testEnvironment node", "test:watch": "pnpm test:jest --watch", "debug": "LANG=en_US.UTF8 NODE_OPTIONS=\"$NODE_OPTIONS --experimental-vm-modules --inspect-brk\" jest -i --testEnvironment node", "clean": "git clean -f -d src test; rm -rf lib", diff --git a/packages/message-accumulator/package.json b/packages/message-accumulator/package.json index a48bc92a7..abbda5a74 100644 --- a/packages/message-accumulator/package.json +++ b/packages/message-accumulator/package.json @@ -52,7 +52,7 @@ "scripts": { "build": "grunt babel", "test": "npm-run-all --npm-path pnpm build test:cli", - "test:cli": "LANG=en_US.UTF8 NODE_OPTIONS=\"$NODE_OPTIONS --experimental-vm-modules\" jest --testEnvironment node", + "test:cli": "LANG=en_US.UTF8 node --experimental-vm-modules node_modules/jest/bin/jest.js --testEnvironment node", "test:watch": "pnpm test:jest --watch", "debug": "LANG=en_US.UTF8 NODE_OPTIONS=\"$NODE_OPTIONS --experimental-vm-modules --inspect-brk\" jest -i --testEnvironment node", "clean": "git clean -f -d * ; rm -rf lib", diff --git a/packages/tmxtool/package.json b/packages/tmxtool/package.json index 313ac3216..027386242 100644 --- a/packages/tmxtool/package.json +++ b/packages/tmxtool/package.json @@ -53,7 +53,7 @@ "node": ">= 14.0.0" }, "scripts": { - "test": "LANG=en_US.UTF8 NODE_OPTIONS=\"$NODE_OPTIONS --experimental-vm-modules\" jest --testEnvironment node", + "test": "LANG=en_US.UTF8 node --experimental-vm-modules node_modules/jest/bin/jest.js --testEnvironment node", "test:watch": "LANG=en_US.UTF8 NODE_OPTIONS=\"$NODE_OPTIONS --experimental-vm-modules\" jest --testEnvironment node --watch", "debug": "NODE_OPTIONS=\"$NODE_OPTIONS --experimental-vm-modules --inspect-brk\" jest --testEnvironment node -i", "clean": "git clean -f -d src test", From 1446d7dde4a3a8764730756b3723f79c4f29bdc7 Mon Sep 17 00:00:00 2001 From: Wadim Wawrzenczak Date: Thu, 12 Dec 2024 16:15:11 +0100 Subject: [PATCH 3/8] Fix ilib-lint-common tests --- packages/ilib-lint-common/package.json | 2 + .../ilib-lint-common/test/SourceFile.test.js | 98 ++++++----- pnpm-lock.yaml | 156 ++++++++++++------ 3 files changed, 153 insertions(+), 103 deletions(-) diff --git a/packages/ilib-lint-common/package.json b/packages/ilib-lint-common/package.json index c7451bfc5..41f1bc831 100644 --- a/packages/ilib-lint-common/package.json +++ b/packages/ilib-lint-common/package.json @@ -61,7 +61,9 @@ "types": "tsc -p ./jsconfig.json" }, "devDependencies": { + "@jest/globals": "^29.7.0", "@tsconfig/node14": "^14.1.0", + "@types/jest": "^29.5.14", "@types/node": "^20.11.5", "docdash": "^2.0.2", "jest": "^29.7.0", diff --git a/packages/ilib-lint-common/test/SourceFile.test.js b/packages/ilib-lint-common/test/SourceFile.test.js index 810251bb3..aefe74125 100644 --- a/packages/ilib-lint-common/test/SourceFile.test.js +++ b/packages/ilib-lint-common/test/SourceFile.test.js @@ -17,11 +17,9 @@ * limitations under the License. */ -import fs from 'fs'; -import SourceFile from '../src/SourceFile.js'; -import jest from 'jest-mock'; - -import {describe, expect, test} from '@jest/globals'; +import fs from "fs"; +import SourceFile from "../src/SourceFile.js"; +import { jest } from "@jest/globals"; /** * @jest-environment node @@ -37,19 +35,19 @@ const getLogger = (loggerName) => { }; }; -describe('SourceFile', () => { - const filePath1 = './test/testfiles/testfile1.txt'; - const filePath2 = './test/testfiles/testfile2.txt'; - const filePath3 = './test/testfiles/testfile3.txt'; - const filePath4 = './test/testfiles/testfile4.txt'; +describe("SourceFile", () => { + const filePath1 = "./test/testfiles/testfile1.txt"; + const filePath2 = "./test/testfiles/testfile2.txt"; + const filePath3 = "./test/testfiles/testfile3.txt"; + const filePath4 = "./test/testfiles/testfile4.txt"; - test('should throw an error if created without a file path', () => { + test("should throw an error if created without a file path", () => { expect.assertions(1); - expect(() => new SourceFile(undefined)).toThrowError('Attempt to create a SourceFile without a file path'); + expect(() => new SourceFile(undefined)).toThrowError("Attempt to create a SourceFile without a file path"); }); - test('should create a SourceFile instance with the correct properties', () => { + test("should create a SourceFile instance with the correct properties", () => { expect.assertions(2); const sourceFile = new SourceFile(filePath1, { getLogger }); @@ -57,19 +55,19 @@ describe('SourceFile', () => { expect(sourceFile.getType()).toBe("string"); }); - test('should create a SourceFile instance with provided options', () => { + test("should create a SourceFile instance with provided options", () => { expect.assertions(2); const customLogger = { log: jest.fn() }; const type = "test"; const sourceFile = new SourceFile(filePath1, { - type + type, }); expect(sourceFile.getPath()).toBe(filePath1); expect(sourceFile.getType()).toBe("test"); }); - test('should read the raw file into memory correctly', () => { + test("should read the raw file into memory correctly", () => { expect.assertions(2); const sourceFile = new SourceFile(filePath1, { getLogger }); @@ -78,40 +76,40 @@ describe('SourceFile', () => { expect(sourceFile.isDirty()).toBe(false); }); - test('should read the cooked file into memory correctly', () => { + test("should read the cooked file into memory correctly", () => { expect.assertions(2); const sourceFile = new SourceFile(filePath1, { getLogger }); - expect(sourceFile.getContent()).toBe('Mock file content'); + expect(sourceFile.getContent()).toBe("Mock file content"); expect(sourceFile.isDirty()).toBe(false); }); - test('should get the path to the source file', () => { + test("should get the path to the source file", () => { expect.assertions(1); const sourceFile = new SourceFile(filePath1, { getLogger }); expect(sourceFile.getPath()).toBe(filePath1); }); - test('should get the raw contents of the file as a Buffer', () => { + test("should get the raw contents of the file as a Buffer", () => { expect.assertions(2); const sourceFile = new SourceFile(filePath1, { getLogger }); const rawBuffer = sourceFile.getRaw(); expect(Buffer.isBuffer(rawBuffer)).toBe(true); - expect(rawBuffer?.toString('utf-8')).toBe('Mock file content'); + expect(rawBuffer?.toString("utf-8")).toBe("Mock file content"); }); - test('should get the content of the file as a string', () => { + test("should get the content of the file as a string", () => { expect.assertions(1); const sourceFile = new SourceFile(filePath1, { getLogger }); - expect(sourceFile.getContent()).toBe('Mock file content'); + expect(sourceFile.getContent()).toBe("Mock file content"); }); - test('should get lines from the file content', () => { + test("should get lines from the file content", () => { expect.assertions(3); const sourceFile = new SourceFile(filePath2, { getLogger }); @@ -119,78 +117,78 @@ describe('SourceFile', () => { expect(Array.isArray(lines)).toBe(true); expect(lines).toHaveLength(3); - expect(lines).toEqual(['Line 1', 'Line 2', 'Line 3']); + expect(lines).toEqual(["Line 1", "Line 2", "Line 3"]); }); - test('should set lines to the file content', () => { + test("should set lines to the file content", () => { expect.assertions(1); const sourceFile = new SourceFile(filePath2, { getLogger }); - const newLines = ['New Line 1', 'New Line 2', 'New Line 3']; + const newLines = ["New Line 1", "New Line 2", "New Line 3"]; const newSourceFile = new SourceFile(filePath2, { file: sourceFile, - content: newLines.join('\n') + content: newLines.join("\n"), }); expect(newSourceFile.getLines()).toEqual(newLines); }); - test('should not set lines to an empty array if null is provided', () => { + test("should not set lines to an empty array if null is provided", () => { expect.assertions(1); const sourceFile = new SourceFile(filePath2, { getLogger }); const newSourceFile = new SourceFile(filePath2, { file: sourceFile, - content: null + content: null, }); // The content of the file is still the same - expect(newSourceFile.getLines()).toEqual(['Line 1', 'Line 2', 'Line 3']); + expect(newSourceFile.getLines()).toEqual(["Line 1", "Line 2", "Line 3"]); }); - test('should not set lines to an empty array if undefined is provided', () => { + test("should not set lines to an empty array if undefined is provided", () => { expect.assertions(1); const sourceFile = new SourceFile(filePath2, { getLogger }); const newSourceFile = new SourceFile(filePath2, { file: sourceFile, - content: undefined + content: undefined, }); // The content of the file is still the same - expect(newSourceFile.getLines()).toEqual(['Line 1', 'Line 2', 'Line 3']); + expect(newSourceFile.getLines()).toEqual(["Line 1", "Line 2", "Line 3"]); }); - test('should handle empty lines in the file content', () => { + test("should handle empty lines in the file content", () => { expect.assertions(1); const sourceFile = new SourceFile(filePath3, { getLogger }); - expect(sourceFile.getLines()).toEqual(['', '']); + expect(sourceFile.getLines()).toEqual(["", ""]); }); - test('should handle a single line in the file content', () => { + test("should handle a single line in the file content", () => { expect.assertions(1); const sourceFile = new SourceFile(filePath4, { getLogger }); - expect(sourceFile.getLines()).toEqual(['Single Line']); + expect(sourceFile.getLines()).toEqual(["Single Line"]); }); - test('should set lines to an empty array if an empty array is provided', () => { + test("should set lines to an empty array if an empty array is provided", () => { expect.assertions(2); const sourceFile = new SourceFile(filePath2, { getLogger }); - expect(sourceFile.getLines()).toEqual(['Line 1', 'Line 2', 'Line 3']); + expect(sourceFile.getLines()).toEqual(["Line 1", "Line 2", "Line 3"]); const newSourceFile = new SourceFile(filePath2, { file: sourceFile, - content: '' + content: "", }); - expect(newSourceFile.getLines()).toEqual(['']); + expect(newSourceFile.getLines()).toEqual([""]); }); - test('length is set correctly', () => { + test("length is set correctly", () => { expect.assertions(1); const sourceFile = new SourceFile(filePath2, { getLogger }); @@ -198,31 +196,31 @@ describe('SourceFile', () => { expect(sourceFile.getLength()).toBe(20); }); - test('length is updated after setLines', () => { + test("length is updated after setLines", () => { expect.assertions(2); const sourceFile = new SourceFile(filePath2, { getLogger }); expect(sourceFile.getLength()).toBe(20); - const newLines = ['New Line 1', 'New Line 2', 'New Line 3']; + const newLines = ["New Line 1", "New Line 2", "New Line 3"]; const newSourceFile = new SourceFile(filePath2, { file: sourceFile, - content: newLines.join('\n') + content: newLines.join("\n"), }); expect(newSourceFile.getLength()).toBe(32); }); - test('dirty flag is updated after setLines', () => { + test("dirty flag is updated after setLines", () => { expect.assertions(2); const sourceFile = new SourceFile(filePath2, { getLogger }); expect(sourceFile.isDirty()).toBeFalsy(); - const newLines = ['New Line 1', 'New Line 2', 'New Line 3']; + const newLines = ["New Line 1", "New Line 2", "New Line 3"]; const newSourceFile = new SourceFile(filePath2, { file: sourceFile, - content: newLines.join('\n') + content: newLines.join("\n"), }); expect(newSourceFile.isDirty()).toBeTruthy(); }); -}); \ No newline at end of file +}); diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 9d39c4621..f91ca64e4 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -46,7 +46,7 @@ importers: version: file:packages/ilib-assemble/test/ilib-mock/ilib-mock-1.0.0.tgz jest: specifier: ^29.7.0 - version: 29.7.0(@types/node@20.17.4)(node-notifier@8.0.2) + version: 29.7.0(node-notifier@8.0.2) jsdoc: specifier: ^4.0.2 version: 4.0.4 @@ -192,7 +192,7 @@ importers: version: 5.2.2 jest: specifier: ^29.7.0 - version: 29.7.0(@types/node@20.17.4)(node-notifier@8.0.2) + version: 29.7.0(node-notifier@8.0.2) jsdoc: specifier: ^4.0.2 version: 4.0.4 @@ -258,7 +258,7 @@ importers: version: 5.2.2 jest: specifier: ^29.7.0 - version: 29.7.0(@types/node@20.17.4)(node-notifier@8.0.2) + version: 29.7.0(node-notifier@8.0.2) jest-mock: specifier: ^29.7.0 version: 29.7.0 @@ -368,9 +368,15 @@ importers: packages/ilib-lint-common: devDependencies: + '@jest/globals': + specifier: ^29.7.0 + version: 29.7.0 '@tsconfig/node14': specifier: ^14.1.0 version: 14.1.2 + '@types/jest': + specifier: ^29.5.14 + version: 29.5.14 '@types/node': specifier: ^20.11.5 version: 20.17.4 @@ -407,7 +413,7 @@ importers: version: 2.0.2 jest: specifier: ^29.7.0 - version: 29.7.0(@types/node@20.17.4)(node-notifier@8.0.2) + version: 29.7.0(node-notifier@8.0.2) jsdoc: specifier: ^4.0.2 version: 4.0.4 @@ -438,7 +444,7 @@ importers: version: 2.0.2 jest: specifier: ^29.7.0 - version: 29.7.0(@types/node@20.17.4)(node-notifier@8.0.2) + version: 29.7.0(node-notifier@8.0.2) jsdoc: specifier: ^4.0.2 version: 4.0.4 @@ -496,7 +502,7 @@ importers: version: 10.7.6 jest: specifier: ^29.7.0 - version: 29.7.0(@types/node@20.17.4)(node-notifier@8.0.2) + version: 29.7.0(node-notifier@8.0.2) jsdoc: specifier: ^4.0.2 version: 4.0.4 @@ -678,7 +684,7 @@ importers: version: 3.2.0 grunt-contrib-nodeunit: specifier: ^4.0.0 - version: 4.0.0(ts-node@8.10.2(typescript@3.9.10))(typescript@3.9.10) + version: 4.0.0(ts-node@8.10.2(typescript@5.6.3))(typescript@5.6.3) grunt-contrib-uglify: specifier: ^5.2.2 version: 5.2.2 @@ -971,7 +977,7 @@ importers: devDependencies: jest: specifier: ^29.0.0 - version: 29.7.0(@types/node@20.17.4)(node-notifier@8.0.2) + version: 29.7.0(node-notifier@8.0.2) loctool: specifier: workspace:^ version: link:../loctool @@ -1169,7 +1175,7 @@ importers: devDependencies: jest: specifier: ^29.0.0 - version: 29.7.0(@types/node@20.17.4)(node-notifier@8.0.2) + version: 29.7.0(node-notifier@8.0.2) loctool: specifier: workspace:^ version: link:../loctool @@ -1220,7 +1226,7 @@ importers: devDependencies: jest: specifier: ^29.7.0 - version: 29.7.0(@types/node@20.17.4)(node-notifier@8.0.2) + version: 29.7.0(node-notifier@8.0.2) loctool: specifier: workspace:^ version: link:../loctool @@ -1324,7 +1330,7 @@ importers: version: 5.2.2 jest: specifier: ^29.7.0 - version: 29.7.0(@types/node@20.17.4)(node-notifier@8.0.2) + version: 29.7.0(node-notifier@8.0.2) jsdoc: specifier: ^4.0.2 version: 4.0.4 @@ -1403,7 +1409,7 @@ importers: version: 5.2.2 jest: specifier: ^29.0.0 - version: 29.7.0(@types/node@20.17.4)(node-notifier@8.0.2) + version: 29.7.0(node-notifier@8.0.2) jsdoc: specifier: ^4.0.3 version: 4.0.4 @@ -1469,7 +1475,7 @@ importers: version: 5.0.0(coveralls@3.1.1)(typescript@5.6.3) jest: specifier: ^29.7.0 - version: 29.7.0(@types/node@20.17.4)(node-notifier@8.0.2) + version: 29.7.0(node-notifier@8.0.2) jsdoc: specifier: ^4.0.2 version: 4.0.4 @@ -1551,7 +1557,7 @@ importers: version: 3.2.0 grunt-contrib-nodeunit: specifier: ^4.0.0 - version: 4.0.0(ts-node@8.10.2(typescript@5.6.3))(typescript@5.6.3) + version: 4.0.0(ts-node@8.10.2(typescript@3.9.10))(typescript@3.9.10) grunt-contrib-uglify: specifier: ^5.2.2 version: 5.2.2 @@ -1639,7 +1645,7 @@ importers: version: 5.2.2 jest: specifier: ^29.0.0 - version: 29.7.0(@types/node@20.17.4)(node-notifier@8.0.2) + version: 29.7.0(node-notifier@8.0.2) jest-mock: specifier: ^29.7.0 version: 29.7.0 @@ -1751,7 +1757,7 @@ importers: version: file:packages/loctool/test/ilib-loctool-mock-resource/ilib-loctool-mock-resource-1.0.0.tgz jest: specifier: ^29.7.0 - version: 29.7.0(@types/node@20.17.4)(node-notifier@8.0.2) + version: 29.7.0(node-notifier@8.0.2) packages/message-accumulator: dependencies: @@ -1806,7 +1812,7 @@ importers: version: 5.0.0(coveralls@3.1.1)(typescript@5.6.3) jest: specifier: ^29.7.0 - version: 29.7.0(@types/node@20.17.4)(node-notifier@8.0.2) + version: 29.7.0(node-notifier@8.0.2) jsdoc: specifier: ^4.0.2 version: 4.0.4 @@ -1843,7 +1849,7 @@ importers: version: link:../ilib-tools-common jest: specifier: ^29.7.0 - version: 29.7.0(@types/node@20.17.4)(node-notifier@8.0.2) + version: 29.7.0(node-notifier@8.0.2) jsdoc: specifier: ^4.0.2 version: 4.0.4 @@ -9899,11 +9905,7 @@ snapshots: jest-runner: 26.6.3 jest-runtime: 26.6.3 transitivePeerDependencies: - - bufferutil - - canvas - supports-color - - ts-node - - utf-8-validate '@jest/test-sequencer@29.7.0': dependencies: @@ -10626,7 +10628,7 @@ snapshots: '@babel/core': 7.26.0 find-cache-dir: 4.0.0 schema-utils: 4.2.0 - webpack: 5.95.0 + webpack: 5.95.0(webpack-cli@5.1.4) babel-plugin-add-module-exports@1.0.4: {} @@ -11217,6 +11219,21 @@ snapshots: pify: 4.0.1 safe-buffer: 5.2.1 + create-jest@29.7.0: + dependencies: + '@jest/types': 29.6.3 + chalk: 4.1.2 + exit: 0.1.2 + graceful-fs: 4.2.11 + jest-config: 29.7.0 + jest-util: 29.7.0 + prompts: 2.4.2 + transitivePeerDependencies: + - '@types/node' + - babel-plugin-macros + - supports-color + - ts-node + create-jest@29.7.0(@types/node@12.20.55): dependencies: '@jest/types': 29.6.3 @@ -13410,6 +13427,27 @@ snapshots: - supports-color - ts-node + jest-cli@29.7.0(node-notifier@8.0.2): + dependencies: + '@jest/core': 29.7.0(node-notifier@8.0.2) + '@jest/test-result': 29.7.0 + '@jest/types': 29.6.3 + chalk: 4.1.2 + create-jest: 29.7.0 + exit: 0.1.2 + import-local: 3.2.0 + jest-config: 29.7.0 + jest-util: 29.7.0 + jest-validate: 29.7.0 + yargs: 17.7.2 + optionalDependencies: + node-notifier: 8.0.2 + transitivePeerDependencies: + - '@types/node' + - babel-plugin-macros + - supports-color + - ts-node + jest-config@26.6.3: dependencies: '@babel/core': 7.26.0 @@ -13436,6 +13474,34 @@ snapshots: - supports-color - utf-8-validate + jest-config@29.7.0: + dependencies: + '@babel/core': 7.26.0 + '@jest/test-sequencer': 29.7.0 + '@jest/types': 29.6.3 + babel-jest: 29.7.0(@babel/core@7.26.0) + chalk: 4.1.2 + ci-info: 3.9.0 + deepmerge: 4.3.1 + glob: 7.2.3 + graceful-fs: 4.2.11 + jest-circus: 29.7.0 + jest-environment-node: 29.7.0 + jest-get-type: 29.6.3 + jest-regex-util: 29.6.3 + jest-resolve: 29.7.0 + jest-runner: 29.7.0 + jest-util: 29.7.0 + jest-validate: 29.7.0 + micromatch: 4.0.8 + parse-json: 5.2.0 + pretty-format: 29.7.0 + slash: 3.0.0 + strip-json-comments: 3.1.1 + transitivePeerDependencies: + - babel-plugin-macros + - supports-color + jest-config@29.7.0(@types/node@12.20.55): dependencies: '@babel/core': 7.26.0 @@ -14072,6 +14138,20 @@ snapshots: - supports-color - ts-node + jest@29.7.0(node-notifier@8.0.2): + dependencies: + '@jest/core': 29.7.0(node-notifier@8.0.2) + '@jest/types': 29.6.3 + import-local: 3.2.0 + jest-cli: 29.7.0(node-notifier@8.0.2) + optionalDependencies: + node-notifier: 8.0.2 + transitivePeerDependencies: + - '@types/node' + - babel-plugin-macros + - supports-color + - ts-node + joi@13.7.0: dependencies: hoek: 5.0.4 @@ -17370,36 +17450,6 @@ snapshots: webpack-sources@3.2.3: {} - webpack@5.95.0: - dependencies: - '@types/estree': 1.0.6 - '@webassemblyjs/ast': 1.12.1 - '@webassemblyjs/wasm-edit': 1.12.1 - '@webassemblyjs/wasm-parser': 1.12.1 - acorn: 8.14.0 - acorn-import-attributes: 1.9.5(acorn@8.14.0) - browserslist: 4.24.2 - chrome-trace-event: 1.0.4 - enhanced-resolve: 5.17.1 - es-module-lexer: 1.5.4 - eslint-scope: 5.1.1 - events: 3.3.0 - glob-to-regexp: 0.4.1 - graceful-fs: 4.2.11 - json-parse-even-better-errors: 2.3.1 - loader-runner: 4.3.0 - mime-types: 2.1.35 - neo-async: 2.6.2 - schema-utils: 3.3.0 - tapable: 2.2.1 - terser-webpack-plugin: 5.3.10(webpack@5.95.0) - watchpack: 2.4.2 - webpack-sources: 3.2.3 - transitivePeerDependencies: - - '@swc/core' - - esbuild - - uglify-js - webpack@5.95.0(webpack-cli@4.10.0): dependencies: '@types/estree': 1.0.6 From 2ab0e23582a22aa0ecd6d4f2537a8f3fbadf4428 Mon Sep 17 00:00:00 2001 From: Wadim Wawrzenczak Date: Thu, 12 Dec 2024 16:24:45 +0100 Subject: [PATCH 4/8] Bugfix invalid set addition --- scripts/binary-scripts-mapping.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/binary-scripts-mapping.js b/scripts/binary-scripts-mapping.js index 3c33cc911..1f81dd049 100644 --- a/scripts/binary-scripts-mapping.js +++ b/scripts/binary-scripts-mapping.js @@ -47,7 +47,7 @@ for (const path of packageFiles) { fs.writeFileSync(path, JSON.stringify(pkg, null, 4)); } - scriptsSet.add(...Object.values(scripts)); + Object.values(scripts).forEach((scriptValue) => scriptsSet.add(scriptValue)); } console.log([...scriptsSet].sort().join("\n")); From 83f48c6b5c716232583b1bf5e94e2d0b602df7e4 Mon Sep 17 00:00:00 2001 From: Wadim Wawrzenczak Date: Thu, 12 Dec 2024 16:42:52 +0100 Subject: [PATCH 5/8] Update remaining missed scripts --- packages/ilib-assemble/package.json | 4 +- packages/ilib-common/package.json | 3 +- packages/ilib-data-utils/package.json | 4 +- packages/ilib-env/package.json | 2 +- packages/ilib-lint-common/package.json | 4 +- packages/ilib-lint/package.json | 4 +- packages/ilib-loader/package.json | 2 +- .../ilib-loctool-android-layout/package.json | 4 +- .../package.json | 4 +- packages/ilib-loctool-csv/package.json | 4 +- .../ilib-loctool-ghfm-readmeio/package.json | 2 +- packages/ilib-loctool-ghfm/package.json | 4 +- packages/ilib-loctool-haml/package.json | 4 +- packages/ilib-loctool-html/package.json | 4 +- packages/ilib-loctool-java/package.json | 4 +- .../package.json | 4 +- packages/ilib-loctool-javascript/package.json | 4 +- packages/ilib-loctool-json/package.json | 4 +- packages/ilib-loctool-jst/package.json | 4 +- packages/ilib-loctool-jsx/package.json | 4 +- packages/ilib-loctool-mrkdwn/package.json | 4 +- packages/ilib-loctool-objectivec/package.json | 4 +- packages/ilib-loctool-po/package.json | 4 +- packages/ilib-loctool-properties/package.json | 4 +- packages/ilib-loctool-ruby-ilib/package.json | 4 +- .../package.json | 4 +- packages/ilib-loctool-strings/package.json | 4 +- packages/ilib-loctool-swift/package.json | 2 +- packages/ilib-loctool-xml/package.json | 2 +- .../ilib-loctool-yaml-resource/package.json | 4 +- packages/ilib-loctool-yaml/package.json | 4 +- packages/ilib-tmx/package.json | 4 +- packages/ilib-tools-common/package.json | 2 +- packages/ilib-tree-node/package.json | 4 +- packages/ilib-yaml/package.json | 2 +- packages/loctool/package.json | 6 +- packages/message-accumulator/package.json | 2 +- packages/tmxtool/package.json | 4 +- scripts/binary-scripts-mapping.js | 59 +++++++++++++++++++ 39 files changed, 127 insertions(+), 69 deletions(-) diff --git a/packages/ilib-assemble/package.json b/packages/ilib-assemble/package.json index ffd0b19ba..37a2709fb 100644 --- a/packages/ilib-assemble/package.json +++ b/packages/ilib-assemble/package.json @@ -51,8 +51,8 @@ "scripts": { "test": "pnpm test:cli", "test:cli": "LANG=en_US.UTF8 node --experimental-vm-modules node_modules/jest/bin/jest.js --testEnvironment node", - "test:watch": "LANG=en_US.UTF8 NODE_OPTIONS=\"$NODE_OPTIONS --experimental-vm-modules\" jest --testEnvironment node --watch", - "debug": "NODE_OPTIONS=\"$NODE_OPTIONS --experimental-vm-modules --inspect-brk\" jest --testEnvironment node -i", + "test:watch": "LANG=en_US.UTF8 node --experimental-vm-modules node_modules/jest/bin/jest.js --testEnvironment node --watch", + "debug": "node --experimental-vm-modules --inspect-brk node_modules/jest/bin/jest.js --testEnvironment node -i", "clean": "git clean -f -d src test ; rm -rf lib *.tgz", "doc": "mkdir -p docs && jsdoc2md -c jsdoc.json --separators --source src/*.js -m table > docs/ilibAssemble.md && pnpm doc:html", "doc:html": "jsdoc -c jsdoc.json" diff --git a/packages/ilib-common/package.json b/packages/ilib-common/package.json index 161bc4ec8..5e82aa54d 100644 --- a/packages/ilib-common/package.json +++ b/packages/ilib-common/package.json @@ -65,7 +65,7 @@ "test:web": "pnpm test:karma --single-run", "test:watch": "pnpm test:jest --watch", "test:all": "npm-run-all --npm-path pnpm test:cli test:web", - "debug": "pnpm build:dev; NODE_OPTIONS=\"$NODE_OPTIONS --inspect-brk\" jest --testEnvironment node -i", + "debug": "pnpm build:dev; node --inspect-brk node_modules/jest/bin/jest.js --testEnvironment node -i", "debug:web": "pnpm test:karma", "clean": "git clean -f -d src test; rm -rf lib", "doc": "mkdir -p docs && jsdoc2md -c jsdoc.json --separators --source src/* -m table > docs/ilibCommon.md && pnpm doc:html", @@ -88,7 +88,6 @@ "grunt-contrib-jshint": "^3.2.0", "grunt-contrib-uglify": "^5.2.2", "jest": "^26.6.3", - "jest-mock": "^29.7.0", "jsdoc": "^4.0.2", "jsdoc-to-markdown": "^8.0.0", "karma": "^6.4.2", diff --git a/packages/ilib-data-utils/package.json b/packages/ilib-data-utils/package.json index e50aa1f35..1f536d585 100644 --- a/packages/ilib-data-utils/package.json +++ b/packages/ilib-data-utils/package.json @@ -57,8 +57,8 @@ "build:prod": "grunt babel --mode=prod", "build:dev": "grunt babel --mode=dev", "test": "LANG=en_US.UTF8 node --experimental-vm-modules node_modules/jest/bin/jest.js --testEnvironment node", - "test:watch": "LANG=en_US.UTF8 NODE_OPTIONS=\"$NODE_OPTIONS --experimental-vm-modules\" jest --testEnvironment node --watch", - "debug": "NODE_OPTIONS=\"$NODE_OPTIONS --experimental-vm-modules --inspect-brk\" jest --testEnvironment node -i", + "test:watch": "LANG=en_US.UTF8 node --experimental-vm-modules node_modules/jest/bin/jest.js --testEnvironment node --watch", + "debug": "node --experimental-vm-modules --inspect-brk node_modules/jest/bin/jest.js --testEnvironment node -i", "clean": "git clean -f -d * ; rm -rf lib", "doc": "mkdir -p docs && jsdoc2md -c jsdoc.json --separators --source src/* -m table > docs/ilib-data-utils.md && pnpm doc:html", "doc:html": "jsdoc -c jsdoc.json" diff --git a/packages/ilib-env/package.json b/packages/ilib-env/package.json index 8472559d2..c5766bce9 100644 --- a/packages/ilib-env/package.json +++ b/packages/ilib-env/package.json @@ -65,7 +65,7 @@ "test:web": "pnpm test:karma --single-run", "test:watch": "pnpm test:jest --watch", "test:all": "npm-run-all --npm-path pnpm test:cli test:web", - "debug": "pnpm build:dev && node --experimental-vm-modules --inspect-brk node_modules/.bin/jest --testEnvironment node -i", + "debug": "pnpm build:dev && node --experimental-vm-modules --inspect-brk node_modules/jest/bin/jest.js --testEnvironment node -i", "debug:web": "LANG=en_US.UTF8 node --experimental-vm-modules node_modules/.bin/karma start --reporters dots", "clean": "git clean -f -d src test; rm -rf lib", "doc": "mkdir -p docs && jsdoc2md -c jsdoc.json --separators --source src/* -m table > docs/ilibEnv.md && pnpm doc:html", diff --git a/packages/ilib-lint-common/package.json b/packages/ilib-lint-common/package.json index 41f1bc831..2c455de3c 100644 --- a/packages/ilib-lint-common/package.json +++ b/packages/ilib-lint-common/package.json @@ -53,8 +53,8 @@ }, "scripts": { "test": "LANG=en_US.UTF8 node --experimental-vm-modules node_modules/jest/bin/jest.js", - "test:watch": "LANG=en_US.UTF8 NODE_OPTIONS=\"$NODE_OPTIONS --experimental-vm-modules\" jest --watch", - "debug": "LANG=en_US.UTF8 NODE_OPTIONS=\"$NODE_OPTIONS --experimental-vm-modules --inspect-brk\" jest -i", + "test:watch": "LANG=en_US.UTF8 node --experimental-vm-modules node_modules/jest/bin/jest.js --watch", + "debug": "LANG=en_US.UTF8 node --experimental-vm-modules --inspect-brk node_modules/jest/bin/jest.js -i", "clean": "git clean -f -d src test", "doc": "mkdir -p docs && jsdoc2md -c jsdoc.json --separators --source src/* -m table > docs/ilib-lint-common.md && pnpm run doc:html", "doc:html": "jsdoc -c jsdoc.json", diff --git a/packages/ilib-lint/package.json b/packages/ilib-lint/package.json index 291b545d4..b3f863791 100644 --- a/packages/ilib-lint/package.json +++ b/packages/ilib-lint/package.json @@ -50,9 +50,9 @@ }, "scripts": { "test": "pnpm test:jest", - "test:jest": "LANG=en_US.UTF8 NODE_OPTIONS=\"$NODE_OPTIONS --trace-warnings --experimental-vm-modules\" jest", + "test:jest": "LANG=en_US.UTF8 node --trace-warnings --experimental-vm-modules node_modules/jest/bin/jest.js", "test:watch": "pnpm test:jest --watch", - "debug": "LANG=en_US.UTF8 NODE_OPTIONS=\"$NODE_OPTIONS --trace-warnings --experimental-vm-modules --inspect-brk\" jest -i", + "debug": "LANG=en_US.UTF8 node --experimental-vm-modules --inspect-brk node_modules/jest/bin/jest.js -i", "lint": "node src/index.js", "clean": "git clean -f -d src test", "doc": "mkdir -p docs && jsdoc2md -c jsdoc.json --separators --source src/* -m table > docs/ilibLint.md && pnpm doc:html", diff --git a/packages/ilib-loader/package.json b/packages/ilib-loader/package.json index 1ccdd19a7..db5f4aa2a 100644 --- a/packages/ilib-loader/package.json +++ b/packages/ilib-loader/package.json @@ -62,7 +62,7 @@ "test:web": "pnpm test:karma --single-run", "test:watch": "pnpm test:jest --watch", "test:all": "npm-run-all --npm-path pnpm test:cli test:web", - "debug": "pnpm build:dev && node --experimental-vm-modules --inspect-brk node_modules/.bin/jest --testEnvironment node -i", + "debug": "pnpm build:dev && node --experimental-vm-modules --inspect-brk node_modules/jest/bin/jest.js --testEnvironment node -i", "debug:web": "LANG=en_US.UTF8 node --experimental-vm-modules node_modules/.bin/karma start --reporters dots", "clean": "git clean -f -d src test&& rm -rf lib", "doc": "mkdir -p docs && jsdoc2md -c jsdoc.json --separators --source src/* -m table > docs/ilib-loader.md && pnpm doc:html", diff --git a/packages/ilib-loctool-android-layout/package.json b/packages/ilib-loctool-android-layout/package.json index 5c9380049..a73b874e9 100644 --- a/packages/ilib-loctool-android-layout/package.json +++ b/packages/ilib-loctool-android-layout/package.json @@ -44,8 +44,8 @@ }, "scripts": { "test": "node node_modules/jest/bin/jest.js", - "test:watch": "jest --watch", - "debug": "NODE_OPTIONS=\"$NODE_OPTIONS --inspect-brk\" jest -i", + "test:watch": "node node_modules/jest/bin/jest.js --watch", + "debug": "node --inspect-brk node_modules/jest/bin/jest.js -i", "clean": "git clean -f -d *" }, "engines": { diff --git a/packages/ilib-loctool-android-resource/package.json b/packages/ilib-loctool-android-resource/package.json index ac79477a7..0d3a2d7e0 100644 --- a/packages/ilib-loctool-android-resource/package.json +++ b/packages/ilib-loctool-android-resource/package.json @@ -44,8 +44,8 @@ }, "scripts": { "test": "node node_modules/jest/bin/jest.js", - "test:watch": "jest --watch", - "debug": "NODE_OPTIONS=\"$NODE_OPTIONS --inspect-brk\" jest -i", + "test:watch": "node node_modules/jest/bin/jest.js --watch", + "debug": "node --inspect-brk node_modules/jest/bin/jest.js -i", "clean": "git clean -f -d *" }, "engines": { diff --git a/packages/ilib-loctool-csv/package.json b/packages/ilib-loctool-csv/package.json index 2d5608890..f70a06009 100644 --- a/packages/ilib-loctool-csv/package.json +++ b/packages/ilib-loctool-csv/package.json @@ -43,8 +43,8 @@ }, "scripts": { "test": "node node_modules/jest/bin/jest.js", - "test:watch": "jest --watch", - "debug": "NODE_OPTIONS=\"$NODE_OPTIONS --inspect-brk\" jest -i", + "test:watch": "node node_modules/jest/bin/jest.js --watch", + "debug": "node --inspect-brk node_modules/jest/bin/jest.js -i", "clean": "git clean -f -d *" }, "engines": { diff --git a/packages/ilib-loctool-ghfm-readmeio/package.json b/packages/ilib-loctool-ghfm-readmeio/package.json index d910760b5..574a12d14 100644 --- a/packages/ilib-loctool-ghfm-readmeio/package.json +++ b/packages/ilib-loctool-ghfm-readmeio/package.json @@ -46,7 +46,7 @@ }, "scripts": { "test": "node test/testSuite.js", - "debug": "NODE_OPTIONS=\"$NODE_OPTIONS --inspect-brk\" jest -i", + "debug": "node --inspect-brk node_modules/jest/bin/jest.js -i", "clean": "git clean -f -d *" }, "engines": { diff --git a/packages/ilib-loctool-ghfm/package.json b/packages/ilib-loctool-ghfm/package.json index a0478a3cf..5240ee053 100644 --- a/packages/ilib-loctool-ghfm/package.json +++ b/packages/ilib-loctool-ghfm/package.json @@ -45,8 +45,8 @@ }, "scripts": { "test": "node node_modules/jest/bin/jest.js", - "test:watch": "jest --watch", - "debug": "NODE_OPTIONS=\"$NODE_OPTIONS --inspect-brk\" jest -i", + "test:watch": "node node_modules/jest/bin/jest.js --watch", + "debug": "node --inspect-brk node_modules/jest/bin/jest.js -i", "clean": "git clean -f -d * ; rm -rf test/testfiles/fr-FR test/testfiles/de-DE" }, "engines": { diff --git a/packages/ilib-loctool-haml/package.json b/packages/ilib-loctool-haml/package.json index efc893857..fea3ae667 100644 --- a/packages/ilib-loctool-haml/package.json +++ b/packages/ilib-loctool-haml/package.json @@ -43,8 +43,8 @@ }, "scripts": { "test": "node node_modules/jest/bin/jest.js", - "test:watch": "jest --watch", - "debug": "NODE_OPTIONS=\"$NODE_OPTIONS --inspect-brk\" jest -i", + "test:watch": "node node_modules/jest/bin/jest.js --watch", + "debug": "node --inspect-brk node_modules/jest/bin/jest.js -i", "clean": "git clean -f -d *" }, "engines": { diff --git a/packages/ilib-loctool-html/package.json b/packages/ilib-loctool-html/package.json index 41f4c262e..5b95db05f 100644 --- a/packages/ilib-loctool-html/package.json +++ b/packages/ilib-loctool-html/package.json @@ -42,8 +42,8 @@ }, "scripts": { "test": "node node_modules/jest/bin/jest.js", - "test:watch": "jest --watch", - "debug": "NODE_OPTIONS=\"$NODE_OPTIONS --inspect-brk\" jest -i", + "test:watch": "node node_modules/jest/bin/jest.js --watch", + "debug": "node --inspect-brk node_modules/jest/bin/jest.js -i", "clean": "git clean -f -d *" }, "engines": { diff --git a/packages/ilib-loctool-java/package.json b/packages/ilib-loctool-java/package.json index aac08e727..11ab3d29c 100644 --- a/packages/ilib-loctool-java/package.json +++ b/packages/ilib-loctool-java/package.json @@ -43,8 +43,8 @@ }, "scripts": { "test": "node node_modules/jest/bin/jest.js", - "test:watch": "jest --watch", - "debug": "NODE_OPTIONS=\"$NODE_OPTIONS --inspect-brk\" jest -i", + "test:watch": "node node_modules/jest/bin/jest.js --watch", + "debug": "node --inspect-brk node_modules/jest/bin/jest.js -i", "clean": "git clean -f -d *" }, "engines": { diff --git a/packages/ilib-loctool-javascript-resource/package.json b/packages/ilib-loctool-javascript-resource/package.json index 95e2a7859..54b48f509 100644 --- a/packages/ilib-loctool-javascript-resource/package.json +++ b/packages/ilib-loctool-javascript-resource/package.json @@ -43,8 +43,8 @@ }, "scripts": { "test": "node node_modules/jest/bin/jest.js", - "test:watch": "jest --watch", - "debug": "NODE_OPTIONS=\"$NODE_OPTIONS --inspect-brk\" jest -i", + "test:watch": "node node_modules/jest/bin/jest.js --watch", + "debug": "node --inspect-brk node_modules/jest/bin/jest.js -i", "clean": "git clean -f -d *" }, "engines": { diff --git a/packages/ilib-loctool-javascript/package.json b/packages/ilib-loctool-javascript/package.json index 0b1e1a85a..8a89d56d4 100644 --- a/packages/ilib-loctool-javascript/package.json +++ b/packages/ilib-loctool-javascript/package.json @@ -43,8 +43,8 @@ }, "scripts": { "test": "node node_modules/jest/bin/jest.js", - "test:watch": "jest --watch", - "debug": "NODE_OPTIONS=\"$NODE_OPTIONS --inspect-brk\" jest -i", + "test:watch": "node node_modules/jest/bin/jest.js --watch", + "debug": "node --inspect-brk node_modules/jest/bin/jest.js -i", "clean": "git clean -f -d *" }, "engines": { diff --git a/packages/ilib-loctool-json/package.json b/packages/ilib-loctool-json/package.json index 927749bf4..7d830b751 100644 --- a/packages/ilib-loctool-json/package.json +++ b/packages/ilib-loctool-json/package.json @@ -44,8 +44,8 @@ }, "scripts": { "test": "node node_modules/jest/bin/jest.js", - "test:watch": "jest --watch", - "debug": "NODE_OPTIONS=\"$NODE_OPTIONS --inspect-brk\" jest -i", + "test:watch": "node node_modules/jest/bin/jest.js --watch", + "debug": "node --inspect-brk node_modules/jest/bin/jest.js -i", "clean": "git clean -f -d test" }, "engines": { diff --git a/packages/ilib-loctool-jst/package.json b/packages/ilib-loctool-jst/package.json index 54e4444ef..c7378f666 100644 --- a/packages/ilib-loctool-jst/package.json +++ b/packages/ilib-loctool-jst/package.json @@ -43,8 +43,8 @@ }, "scripts": { "test": "node node_modules/jest/bin/jest.js", - "test:watch": "jest --watch", - "debug": "NODE_OPTIONS=\"$NODE_OPTIONS --inspect-brk\" jest -i", + "test:watch": "node node_modules/jest/bin/jest.js --watch", + "debug": "node --inspect-brk node_modules/jest/bin/jest.js -i", "clean": "git clean -f -d *" }, "engines": { diff --git a/packages/ilib-loctool-jsx/package.json b/packages/ilib-loctool-jsx/package.json index 374ff448b..9c66d394f 100644 --- a/packages/ilib-loctool-jsx/package.json +++ b/packages/ilib-loctool-jsx/package.json @@ -44,8 +44,8 @@ }, "scripts": { "test": "node node_modules/jest/bin/jest.js", - "test:watch": "jest --watch", - "debug": "NODE_OPTIONS=\"$NODE_OPTIONS --inspect-brk\" jest -i", + "test:watch": "node node_modules/jest/bin/jest.js --watch", + "debug": "node --inspect-brk node_modules/jest/bin/jest.js -i", "clean": "git clean -f -d *" }, "engines": { diff --git a/packages/ilib-loctool-mrkdwn/package.json b/packages/ilib-loctool-mrkdwn/package.json index 53b85e7b3..9e5fcd6e4 100644 --- a/packages/ilib-loctool-mrkdwn/package.json +++ b/packages/ilib-loctool-mrkdwn/package.json @@ -47,8 +47,8 @@ }, "scripts": { "test": "node node_modules/jest/bin/jest.js", - "test:watch": "jest --watch", - "debug": "NODE_OPTIONS=\"$NODE_OPTIONS --inspect-brk\" jest -i", + "test:watch": "node node_modules/jest/bin/jest.js --watch", + "debug": "node --inspect-brk node_modules/jest/bin/jest.js -i", "clean": "git clean -f -d * ; rm -rf test/testfiles/fr-FR test/testfiles/de-DE" }, "engines": { diff --git a/packages/ilib-loctool-objectivec/package.json b/packages/ilib-loctool-objectivec/package.json index 940f40d22..c3deeed2b 100644 --- a/packages/ilib-loctool-objectivec/package.json +++ b/packages/ilib-loctool-objectivec/package.json @@ -41,8 +41,8 @@ }, "scripts": { "test": "node node_modules/jest/bin/jest.js", - "test:watch": "jest --watch", - "debug": "NODE_OPTIONS=\"$NODE_OPTIONS --inspect-brk\" jest -i", + "test:watch": "node node_modules/jest/bin/jest.js --watch", + "debug": "node --inspect-brk node_modules/jest/bin/jest.js -i", "clean": "git clean -f -d *" }, "engines": { diff --git a/packages/ilib-loctool-po/package.json b/packages/ilib-loctool-po/package.json index df4bc91f5..9c1861c3c 100644 --- a/packages/ilib-loctool-po/package.json +++ b/packages/ilib-loctool-po/package.json @@ -46,8 +46,8 @@ }, "scripts": { "test": "node node_modules/jest/bin/jest.js", - "test:watch": "jest --watch", - "debug": "NODE_OPTIONS=\"$NODE_OPTIONS --inspect-brk\" jest -i", + "test:watch": "node node_modules/jest/bin/jest.js --watch", + "debug": "node --inspect-brk node_modules/jest/bin/jest.js -i", "clean": "git clean -f -d test" }, "engines": { diff --git a/packages/ilib-loctool-properties/package.json b/packages/ilib-loctool-properties/package.json index ae7e285a9..03a101621 100644 --- a/packages/ilib-loctool-properties/package.json +++ b/packages/ilib-loctool-properties/package.json @@ -43,8 +43,8 @@ }, "scripts": { "test": "node node_modules/jest/bin/jest.js", - "test:watch": "jest --watch", - "debug": "NODE_OPTIONS=\"$NODE_OPTIONS --inspect-brk\" jest", + "test:watch": "node node_modules/jest/bin/jest.js --watch", + "debug": "node --inspect-brk node_modules/jest/bin/jest.js", "clean": "git clean -f -d *" }, "engines": { diff --git a/packages/ilib-loctool-ruby-ilib/package.json b/packages/ilib-loctool-ruby-ilib/package.json index 82e8ca0fe..1d32dc6aa 100644 --- a/packages/ilib-loctool-ruby-ilib/package.json +++ b/packages/ilib-loctool-ruby-ilib/package.json @@ -42,8 +42,8 @@ }, "scripts": { "test": "node node_modules/jest/bin/jest.js", - "test:watch": "jest --watch", - "debug": "NODE_OPTIONS=\"$NODE_OPTIONS --inspect-brk\" jest -i", + "test:watch": "node node_modules/jest/bin/jest.js --watch", + "debug": "node --inspect-brk node_modules/jest/bin/jest.js -i", "clean": "git clean -f -d *" }, "engines": { diff --git a/packages/ilib-loctool-salesforce-metaxml/package.json b/packages/ilib-loctool-salesforce-metaxml/package.json index 95d94a986..35ead67e7 100644 --- a/packages/ilib-loctool-salesforce-metaxml/package.json +++ b/packages/ilib-loctool-salesforce-metaxml/package.json @@ -47,8 +47,8 @@ }, "scripts": { "test": "node node_modules/jest/bin/jest.js", - "test:watch": "jest --watch", - "debug": "NODE_OPTIONS=\"$NODE_OPTIONS --inspect-brk\" jest -i", + "test:watch": "node node_modules/jest/bin/jest.js --watch", + "debug": "node --inspect-brk node_modules/jest/bin/jest.js -i", "clean": "git clean -f -d *" }, "engines": { diff --git a/packages/ilib-loctool-strings/package.json b/packages/ilib-loctool-strings/package.json index 4578656b4..7401e3319 100644 --- a/packages/ilib-loctool-strings/package.json +++ b/packages/ilib-loctool-strings/package.json @@ -42,8 +42,8 @@ }, "scripts": { "test": "node node_modules/jest/bin/jest.js", - "test:watch": "jest --watch", - "debug": "NODE_OPTIONS=\"$NODE_OPTIONS --inspect-brk\" jest -i", + "test:watch": "node node_modules/jest/bin/jest.js --watch", + "debug": "node --inspect-brk node_modules/jest/bin/jest.js -i", "clean": "git clean -f -d *" }, "engines": { diff --git a/packages/ilib-loctool-swift/package.json b/packages/ilib-loctool-swift/package.json index 57583dd68..86efee215 100644 --- a/packages/ilib-loctool-swift/package.json +++ b/packages/ilib-loctool-swift/package.json @@ -44,7 +44,7 @@ "test": "pnpm test:jest", "test:jest": "LANG=en_US.UTF8 node --experimental-vm-modules node_modules/jest/bin/jest.js", "test:watch": "pnpm test:jest --watch", - "debug": "LANG=en_US.UTF8 NODE_OPTIONS=\"$NODE_OPTIONS --experimental-vm-modules --inspect-brk\" jest -i", + "debug": "LANG=en_US.UTF8 node --experimental-vm-modules --inspect-brk node_modules/jest/bin/jest.js -i", "clean": "git clean -f -d *" }, "engines": { diff --git a/packages/ilib-loctool-xml/package.json b/packages/ilib-loctool-xml/package.json index 53aeeefae..ae1369079 100644 --- a/packages/ilib-loctool-xml/package.json +++ b/packages/ilib-loctool-xml/package.json @@ -47,7 +47,7 @@ "test": "pnpm test:jest", "test:jest": "LANG=en_US.UTF8 node --experimental-vm-modules node_modules/jest/bin/jest.js", "test:watch": "pnpm test:jest --watch", - "debug": "LANG=en_US.UTF8 NODE_OPTIONS=\"$NODE_OPTIONS --experimental-vm-modules --inspect-brk\" jest -i", + "debug": "LANG=en_US.UTF8 node --experimental-vm-modules --inspect-brk node_modules/jest/bin/jest.js -i", "clean": "git clean -f -d test" }, "engines": { diff --git a/packages/ilib-loctool-yaml-resource/package.json b/packages/ilib-loctool-yaml-resource/package.json index bbd015ef7..7fbf860ef 100644 --- a/packages/ilib-loctool-yaml-resource/package.json +++ b/packages/ilib-loctool-yaml-resource/package.json @@ -42,8 +42,8 @@ }, "scripts": { "test": "node node_modules/jest/bin/jest.js", - "test:watch": "jest --watch", - "debug": "NODE_OPTIONS=\"$NODE_OPTIONS --inspect-brk\" jest -i", + "test:watch": "node node_modules/jest/bin/jest.js --watch", + "debug": "node --inspect-brk node_modules/jest/bin/jest.js -i", "clean": "git clean -f -d *" }, "engines": { diff --git a/packages/ilib-loctool-yaml/package.json b/packages/ilib-loctool-yaml/package.json index 8c9dbb69b..3054d5bda 100644 --- a/packages/ilib-loctool-yaml/package.json +++ b/packages/ilib-loctool-yaml/package.json @@ -41,8 +41,8 @@ }, "scripts": { "test": "node node_modules/jest/bin/jest.js", - "test:watch": "jest --watch", - "debug": "NODE_OPTIONS=\"$NODE_OPTIONS --inspect-brk\" jest -i", + "test:watch": "node node_modules/jest/bin/jest.js --watch", + "debug": "node --inspect-brk node_modules/jest/bin/jest.js -i", "clean": "git clean -f -d *" }, "engines": { diff --git a/packages/ilib-tmx/package.json b/packages/ilib-tmx/package.json index 1760fcebd..af369b907 100644 --- a/packages/ilib-tmx/package.json +++ b/packages/ilib-tmx/package.json @@ -53,9 +53,9 @@ "build:prod": "grunt babel --mode=prod && pnpm build:pkg", "build:dev": "grunt babel --mode=dev && pnpm build:pkg", "build:pkg": "echo '{\"type\": \"commonjs\"}' > lib/package.json", - "test": "LANG=en_US.UTF8 NODE_OPTIONS=\"$NODE_OPTIONS --experimental-vm-modules\" jest --testEnvironment node", + "test": "LANG=en_US.UTF8 node --experimental-vm-modules node_modules/jest/bin/jest.js --testEnvironment node", "test:watch": "pnpm test:jest --watch", - "debug": "LANG=en_US.UTF8 NODE_OPTIONS=\"$NODE_OPTIONS --experimental-vm-modules --inspect-brk\" jest -i --testEnvironment node", + "debug": "LANG=en_US.UTF8 node --experimental-vm-modules --inspect-brk node_modules/jest/bin/jest.js -i --testEnvironment node", "clean": "git clean -f -d src test; rm -rf lib *.tgz", "doc": "mkdir -p docs && jsdoc2md -c jsdoc.json --separators --source src/* -m table > docs/ilibTmx.md && pnpm doc:html", "doc:html": "jsdoc -c jsdoc.json" diff --git a/packages/ilib-tools-common/package.json b/packages/ilib-tools-common/package.json index 12d238a35..a50c0fe65 100644 --- a/packages/ilib-tools-common/package.json +++ b/packages/ilib-tools-common/package.json @@ -59,7 +59,7 @@ "build:pkg": "echo '{\"type\": \"commonjs\"}' > lib/package.json", "test": "LANG=en_US.UTF8 node --experimental-vm-modules node_modules/jest/bin/jest.js --testEnvironment node", "test:watch": "pnpm test:jest --watch", - "debug": "LANG=en_US.UTF8 NODE_OPTIONS=\"$NODE_OPTIONS --experimental-vm-modules --inspect-brk\" jest -i --testEnvironment node", + "debug": "LANG=en_US.UTF8 node --experimental-vm-modules --inspect-brk node_modules/jest/bin/jest.js -i --testEnvironment node", "clean": "git clean -f -d src test; rm -rf lib", "doc": "mkdir -p docs && jsdoc2md -c jsdoc.json --separators --source src/* -m table > docs/ilibToolsCommon.md && pnpm doc:html", "doc:html": "jsdoc -c jsdoc.json" diff --git a/packages/ilib-tree-node/package.json b/packages/ilib-tree-node/package.json index d03cf0fbf..07e8f1468 100644 --- a/packages/ilib-tree-node/package.json +++ b/packages/ilib-tree-node/package.json @@ -42,9 +42,9 @@ "scripts": { "build": "grunt babel", "test": "npm-run-all --npm-path pnpm build test:cli", - "test:cli": "LANG=en_US.UTF8 NODE_OPTIONS=\"$NODE_OPTIONS --experimental-vm-modules\" jest --testEnvironment node", + "test:cli": "LANG=en_US.UTF8 node --experimental-vm-modules node_modules/jest/bin/jest.js --testEnvironment node", "test:watch": "pnpm test:jest --watch", - "debug": "LANG=en_US.UTF8 NODE_OPTIONS=\"$NODE_OPTIONS --experimental-vm-modules --inspect-brk\" jest -i --testEnvironment node", + "debug": "LANG=en_US.UTF8 node --experimental-vm-modules --inspect-brk node_modules/jest/bin/jest.js -i --testEnvironment node", "clean": "git clean -f -d * ; rm -rf lib", "doc": "mkdir -p docs && jsdoc2md -c jsdoc.json --separators --source src/* -m table > docs/ilibTreeNode.md && pnpm doc:html", "doc:html": "jsdoc -c jsdoc.json" diff --git a/packages/ilib-yaml/package.json b/packages/ilib-yaml/package.json index e4c6e430e..b1ab69647 100644 --- a/packages/ilib-yaml/package.json +++ b/packages/ilib-yaml/package.json @@ -57,7 +57,7 @@ "test:all": "npm-run-all --npm-path pnpm test:cli", "test:cli": "LANG=en_US.UTF8 node --experimental-vm-modules node_modules/jest/bin/jest.js --testEnvironment node", "test:watch": "pnpm test:jest --watch", - "debug": "LANG=en_US.UTF8 NODE_OPTIONS=\"$NODE_OPTIONS --experimental-vm-modules --inspect-brk\" jest -i --testEnvironment node", + "debug": "LANG=en_US.UTF8 node --experimental-vm-modules --inspect-brk node_modules/jest/bin/jest.js -i --testEnvironment node", "clean": "git clean -f -d src test; rm -rf lib", "doc": "mkdir -p docs && jsdoc2md -c jsdoc.json --separators --source src/* -m table > docs/ilibYaml.md && pnpm doc:html", "doc:html": "jsdoc -c jsdoc.json" diff --git a/packages/loctool/package.json b/packages/loctool/package.json index 4ad85109d..d33ca61f1 100644 --- a/packages/loctool/package.json +++ b/packages/loctool/package.json @@ -58,9 +58,9 @@ "clean": "ant clean", "build": "pnpm generate", "generate": "node generate/genPluralCategories.js", - "test": "LANG=en_US.UTF8 NODE_OPTIONS=\"$NODE_OPTIONS --experimental-vm-modules\" jest --testEnvironment node --detectOpenHandles", - "test:watch": "LANG=en_US.UTF8 NODE_OPTIONS=\"$NODE_OPTIONS --experimental-vm-modules\" jest --testEnvironment node --detectOpenHandles --watch", - "debug": "NODE_OPTIONS=\"$NODE_OPTIONS --experimental-vm-modules --inspect-brk\" jest --testEnvironment node --detectOpenHandles -i" + "test": "LANG=en_US.UTF8 node --experimental-vm-modules node_modules/jest/bin/jest.js --testEnvironment node --detectOpenHandles", + "test:watch": "LANG=en_US.UTF8 node --experimental-vm-modules node_modules/jest/bin/jest.js --testEnvironment node --detectOpenHandles --watch", + "debug": "node --experimental-vm-modules --inspect-brk node_modules/jest/bin/jest.js --testEnvironment node --detectOpenHandles -i" }, "dependencies": { "@formatjs/intl": "^2.10.4", diff --git a/packages/message-accumulator/package.json b/packages/message-accumulator/package.json index abbda5a74..6e014e621 100644 --- a/packages/message-accumulator/package.json +++ b/packages/message-accumulator/package.json @@ -54,7 +54,7 @@ "test": "npm-run-all --npm-path pnpm build test:cli", "test:cli": "LANG=en_US.UTF8 node --experimental-vm-modules node_modules/jest/bin/jest.js --testEnvironment node", "test:watch": "pnpm test:jest --watch", - "debug": "LANG=en_US.UTF8 NODE_OPTIONS=\"$NODE_OPTIONS --experimental-vm-modules --inspect-brk\" jest -i --testEnvironment node", + "debug": "LANG=en_US.UTF8 node --experimental-vm-modules --inspect-brk node_modules/jest/bin/jest.js -i --testEnvironment node", "clean": "git clean -f -d * ; rm -rf lib", "doc": "mkdir -p docs && jsdoc2md -c jsdoc.json --separators --source src/* -m table > docs/ilibMessageAccumulator.md && pnpm doc:html", "doc:html": "jsdoc -c jsdoc.json" diff --git a/packages/tmxtool/package.json b/packages/tmxtool/package.json index 027386242..955341dd0 100644 --- a/packages/tmxtool/package.json +++ b/packages/tmxtool/package.json @@ -54,8 +54,8 @@ }, "scripts": { "test": "LANG=en_US.UTF8 node --experimental-vm-modules node_modules/jest/bin/jest.js --testEnvironment node", - "test:watch": "LANG=en_US.UTF8 NODE_OPTIONS=\"$NODE_OPTIONS --experimental-vm-modules\" jest --testEnvironment node --watch", - "debug": "NODE_OPTIONS=\"$NODE_OPTIONS --experimental-vm-modules --inspect-brk\" jest --testEnvironment node -i", + "test:watch": "LANG=en_US.UTF8 node --experimental-vm-modules node_modules/jest/bin/jest.js --testEnvironment node --watch", + "debug": "node --experimental-vm-modules --inspect-brk node_modules/jest/bin/jest.js --testEnvironment node -i", "clean": "git clean -f -d src test", "doc": "mkdir -p docs && jsdoc2md -c jsdoc.json --separators --source src/*.js -m table > docs/ilibAssemble.md && pnpm doc:html", "doc:html": "jsdoc -c jsdoc.json" diff --git a/scripts/binary-scripts-mapping.js b/scripts/binary-scripts-mapping.js index 1f81dd049..d2468fa3b 100644 --- a/scripts/binary-scripts-mapping.js +++ b/scripts/binary-scripts-mapping.js @@ -20,6 +20,65 @@ const scriptsMap = new Map([ `LANG=en_US.UTF8 NODE_OPTIONS="$NODE_OPTIONS --experimental-vm-modules" jest --testEnvironment node`, `LANG=en_US.UTF8 node --experimental-vm-modules node_modules/jest/bin/jest.js --testEnvironment node`, ], + [ + `LANG=en_US.UTF8 NODE_OPTIONS="$NODE_OPTIONS --experimental-vm-modules --inspect-brk" jest -i`, + `LANG=en_US.UTF8 node --experimental-vm-modules --inspect-brk node_modules/jest/bin/jest.js -i`, + ], + [ + `LANG=en_US.UTF8 NODE_OPTIONS="$NODE_OPTIONS --experimental-vm-modules --inspect-brk" jest -i --testEnvironment node`, + `LANG=en_US.UTF8 node --experimental-vm-modules --inspect-brk node_modules/jest/bin/jest.js -i --testEnvironment node`, + ], + [ + `LANG=en_US.UTF8 NODE_OPTIONS="$NODE_OPTIONS --experimental-vm-modules --inspect-brk" jest -i --testEnvironment node`, + `LANG=en_US.UTF8 node --experimental-vm-modules --inspect-brk node_modules/jest/bin/jest.js -i --testEnvironment node`, + ], + [ + `LANG=en_US.UTF8 NODE_OPTIONS="$NODE_OPTIONS --experimental-vm-modules" jest --testEnvironment node`, + `LANG=en_US.UTF8 node --experimental-vm-modules node_modules/jest/bin/jest.js --testEnvironment node`, + ], + [ + `LANG=en_US.UTF8 NODE_OPTIONS="$NODE_OPTIONS --experimental-vm-modules" jest --testEnvironment node --detectOpenHandles`, + `LANG=en_US.UTF8 node --experimental-vm-modules node_modules/jest/bin/jest.js --testEnvironment node --detectOpenHandles`, + ], + [ + `LANG=en_US.UTF8 NODE_OPTIONS="$NODE_OPTIONS --experimental-vm-modules" jest --testEnvironment node --detectOpenHandles --watch`, + `LANG=en_US.UTF8 node --experimental-vm-modules node_modules/jest/bin/jest.js --testEnvironment node --detectOpenHandles --watch`, + ], + [ + `LANG=en_US.UTF8 NODE_OPTIONS="$NODE_OPTIONS --experimental-vm-modules" jest --testEnvironment node --watch`, + `LANG=en_US.UTF8 node --experimental-vm-modules node_modules/jest/bin/jest.js --testEnvironment node --watch`, + ], + [ + `LANG=en_US.UTF8 NODE_OPTIONS="$NODE_OPTIONS --experimental-vm-modules" jest --watch`, + `LANG=en_US.UTF8 node --experimental-vm-modules node_modules/jest/bin/jest.js --watch`, + ], + [ + `LANG=en_US.UTF8 NODE_OPTIONS="$NODE_OPTIONS --trace-warnings --experimental-vm-modules --inspect-brk" jest -i`, + `LANG=en_US.UTF8 node --experimental-vm-modules --inspect-brk node_modules/jest/bin/jest.js -i`, + ], + [ + `LANG=en_US.UTF8 NODE_OPTIONS="$NODE_OPTIONS --trace-warnings --experimental-vm-modules" jest`, + `LANG=en_US.UTF8 node --trace-warnings --experimental-vm-modules node_modules/jest/bin/jest.js`, + ], + [ + `NODE_OPTIONS="$NODE_OPTIONS --experimental-vm-modules --inspect-brk" jest --testEnvironment node --detectOpenHandles -i`, + `node --experimental-vm-modules --inspect-brk node_modules/jest/bin/jest.js --testEnvironment node --detectOpenHandles -i`, + ], + [ + `NODE_OPTIONS="$NODE_OPTIONS --experimental-vm-modules --inspect-brk" jest --testEnvironment node -i`, + `node --experimental-vm-modules --inspect-brk node_modules/jest/bin/jest.js --testEnvironment node -i`, + ], + [`NODE_OPTIONS="$NODE_OPTIONS --inspect-brk" jest`, `node --inspect-brk node_modules/jest/bin/jest.js`], + [`NODE_OPTIONS="$NODE_OPTIONS --inspect-brk" jest -i`, `node --inspect-brk node_modules/jest/bin/jest.js -i`], + [`jest --watch`, `node node_modules/jest/bin/jest.js --watch`], + [ + `pnpm build:dev && node --experimental-vm-modules --inspect-brk node_modules/.bin/jest --testEnvironment node -i`, + `pnpm build:dev && node --experimental-vm-modules --inspect-brk node_modules/jest/bin/jest.js --testEnvironment node -i`, + ], + [ + `pnpm build:dev; NODE_OPTIONS="$NODE_OPTIONS --inspect-brk" jest --testEnvironment node -i`, + `pnpm build:dev; node --inspect-brk node_modules/jest/bin/jest.js --testEnvironment node -i`, + ], ]); const packageFiles = fs From 7fe927468d802948fcb89245670044eb32a69037 Mon Sep 17 00:00:00 2001 From: Wadim Wawrzenczak Date: Thu, 12 Dec 2024 16:49:39 +0100 Subject: [PATCH 6/8] (ilib-loctool-mrkdwn) Add missing dependency --- .changeset/flat-windows-report.md | 5 +++++ packages/ilib-loctool-mrkdwn/package.json | 1 + 2 files changed, 6 insertions(+) create mode 100644 .changeset/flat-windows-report.md diff --git a/.changeset/flat-windows-report.md b/.changeset/flat-windows-report.md new file mode 100644 index 000000000..fcbf1d33b --- /dev/null +++ b/.changeset/flat-windows-report.md @@ -0,0 +1,5 @@ +--- +"ilib-loctool-mrkdwn": patch +--- + +Added missing dependency on ilib. diff --git a/packages/ilib-loctool-mrkdwn/package.json b/packages/ilib-loctool-mrkdwn/package.json index 9e5fcd6e4..de7649c28 100644 --- a/packages/ilib-loctool-mrkdwn/package.json +++ b/packages/ilib-loctool-mrkdwn/package.json @@ -55,6 +55,7 @@ "node": ">=10.0" }, "dependencies": { + "ilib": "^14.20.0", "ilib-tree-node": "workspace:^", "message-accumulator": "workspace:^", "micromatch": "^4.0.8", From 9bb9bec2fd2d12a152917159cdd1d21e4c2ff4ca Mon Sep 17 00:00:00 2001 From: Wadim Wawrzenczak Date: Thu, 12 Dec 2024 16:58:30 +0100 Subject: [PATCH 7/8] Add missing dependency on micromatch Affected packages * ilib-loctool-javascript * ilib-loctool-json * ilib-loctool-xml --- .changeset/nine-jobs-behave.md | 7 +++++++ packages/ilib-loctool-javascript/package.json | 3 ++- packages/ilib-loctool-json/package.json | 3 ++- packages/ilib-loctool-xml/package.json | 1 + 4 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 .changeset/nine-jobs-behave.md diff --git a/.changeset/nine-jobs-behave.md b/.changeset/nine-jobs-behave.md new file mode 100644 index 000000000..2c5c46d47 --- /dev/null +++ b/.changeset/nine-jobs-behave.md @@ -0,0 +1,7 @@ +--- +"ilib-loctool-javascript": patch +"ilib-loctool-json": patch +"ilib-loctool-xml": patch +--- + +Added missing dependency on micromatch. diff --git a/packages/ilib-loctool-javascript/package.json b/packages/ilib-loctool-javascript/package.json index 8a89d56d4..02fc2a31e 100644 --- a/packages/ilib-loctool-javascript/package.json +++ b/packages/ilib-loctool-javascript/package.json @@ -57,6 +57,7 @@ "devDependencies": { "ilib-loctool-json": "workspace:^", "jest": "^26.6.3", - "loctool": "workspace:^" + "loctool": "workspace:^", + "micromatch": "^4.0.8" } } \ No newline at end of file diff --git a/packages/ilib-loctool-json/package.json b/packages/ilib-loctool-json/package.json index 7d830b751..ccbaa4306 100644 --- a/packages/ilib-loctool-json/package.json +++ b/packages/ilib-loctool-json/package.json @@ -53,7 +53,8 @@ }, "dependencies": { "ilib": "^14.19.0", - "json5": "^2.2.3" + "json5": "^2.2.3", + "micromatch": "^4.0.8" }, "devDependencies": { "jest": "^29.0.0", diff --git a/packages/ilib-loctool-xml/package.json b/packages/ilib-loctool-xml/package.json index ae1369079..183a8210d 100644 --- a/packages/ilib-loctool-xml/package.json +++ b/packages/ilib-loctool-xml/package.json @@ -55,6 +55,7 @@ }, "dependencies": { "ilib": "^14.18.0", + "micromatch": "^4.0.8", "xml-js": "^1.6.11" }, "devDependencies": { From b34b652b209c46d7c8db95cbbc785cece423b85c Mon Sep 17 00:00:00 2001 From: Wadim Wawrzenczak Date: Thu, 12 Dec 2024 17:10:51 +0100 Subject: [PATCH 8/8] Regenerate lockfile --- pnpm-lock.yaml | 165 +++++++++++++++++++------------------------------ 1 file changed, 65 insertions(+), 100 deletions(-) diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index f91ca64e4..d94deac27 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -46,7 +46,7 @@ importers: version: file:packages/ilib-assemble/test/ilib-mock/ilib-mock-1.0.0.tgz jest: specifier: ^29.7.0 - version: 29.7.0(node-notifier@8.0.2) + version: 29.7.0(@types/node@20.17.4)(node-notifier@8.0.2) jsdoc: specifier: ^4.0.2 version: 4.0.4 @@ -117,9 +117,6 @@ importers: jest: specifier: ^26.6.3 version: 26.6.3 - jest-mock: - specifier: ^29.7.0 - version: 29.7.0 jsdoc: specifier: ^4.0.2 version: 4.0.4 @@ -192,7 +189,7 @@ importers: version: 5.2.2 jest: specifier: ^29.7.0 - version: 29.7.0(node-notifier@8.0.2) + version: 29.7.0(@types/node@20.17.4)(node-notifier@8.0.2) jsdoc: specifier: ^4.0.2 version: 4.0.4 @@ -258,7 +255,7 @@ importers: version: 5.2.2 jest: specifier: ^29.7.0 - version: 29.7.0(node-notifier@8.0.2) + version: 29.7.0(@types/node@20.17.4)(node-notifier@8.0.2) jest-mock: specifier: ^29.7.0 version: 29.7.0 @@ -413,7 +410,7 @@ importers: version: 2.0.2 jest: specifier: ^29.7.0 - version: 29.7.0(node-notifier@8.0.2) + version: 29.7.0(@types/node@20.17.4)(node-notifier@8.0.2) jsdoc: specifier: ^4.0.2 version: 4.0.4 @@ -444,7 +441,7 @@ importers: version: 2.0.2 jest: specifier: ^29.7.0 - version: 29.7.0(node-notifier@8.0.2) + version: 29.7.0(@types/node@20.17.4)(node-notifier@8.0.2) jsdoc: specifier: ^4.0.2 version: 4.0.4 @@ -502,7 +499,7 @@ importers: version: 10.7.6 jest: specifier: ^29.7.0 - version: 29.7.0(node-notifier@8.0.2) + version: 29.7.0(@types/node@20.17.4)(node-notifier@8.0.2) jsdoc: specifier: ^4.0.2 version: 4.0.4 @@ -684,7 +681,7 @@ importers: version: 3.2.0 grunt-contrib-nodeunit: specifier: ^4.0.0 - version: 4.0.0(ts-node@8.10.2(typescript@5.6.3))(typescript@5.6.3) + version: 4.0.0(ts-node@8.10.2(typescript@3.9.10))(typescript@3.9.10) grunt-contrib-uglify: specifier: ^5.2.2 version: 5.2.2 @@ -952,6 +949,9 @@ importers: loctool: specifier: workspace:^ version: link:../loctool + micromatch: + specifier: ^4.0.8 + version: 4.0.8 packages/ilib-loctool-javascript-resource: dependencies: @@ -974,10 +974,13 @@ importers: json5: specifier: ^2.2.3 version: 2.2.3 + micromatch: + specifier: ^4.0.8 + version: 4.0.8 devDependencies: jest: specifier: ^29.0.0 - version: 29.7.0(node-notifier@8.0.2) + version: 29.7.0(@types/node@20.17.4)(node-notifier@8.0.2) loctool: specifier: workspace:^ version: link:../loctool @@ -1019,6 +1022,9 @@ importers: packages/ilib-loctool-mrkdwn: dependencies: + ilib: + specifier: ^14.20.0 + version: 14.20.0 ilib-tree-node: specifier: workspace:^ version: link:../ilib-tree-node @@ -1175,7 +1181,7 @@ importers: devDependencies: jest: specifier: ^29.0.0 - version: 29.7.0(node-notifier@8.0.2) + version: 29.7.0(@types/node@20.17.4)(node-notifier@8.0.2) loctool: specifier: workspace:^ version: link:../loctool @@ -1185,6 +1191,9 @@ importers: ilib: specifier: ^14.18.0 version: 14.20.0 + micromatch: + specifier: ^4.0.8 + version: 4.0.8 xml-js: specifier: ^1.6.11 version: 1.6.11 @@ -1226,7 +1235,7 @@ importers: devDependencies: jest: specifier: ^29.7.0 - version: 29.7.0(node-notifier@8.0.2) + version: 29.7.0(@types/node@20.17.4)(node-notifier@8.0.2) loctool: specifier: workspace:^ version: link:../loctool @@ -1330,7 +1339,7 @@ importers: version: 5.2.2 jest: specifier: ^29.7.0 - version: 29.7.0(node-notifier@8.0.2) + version: 29.7.0(@types/node@20.17.4)(node-notifier@8.0.2) jsdoc: specifier: ^4.0.2 version: 4.0.4 @@ -1409,7 +1418,7 @@ importers: version: 5.2.2 jest: specifier: ^29.0.0 - version: 29.7.0(node-notifier@8.0.2) + version: 29.7.0(@types/node@20.17.4)(node-notifier@8.0.2) jsdoc: specifier: ^4.0.3 version: 4.0.4 @@ -1475,7 +1484,7 @@ importers: version: 5.0.0(coveralls@3.1.1)(typescript@5.6.3) jest: specifier: ^29.7.0 - version: 29.7.0(node-notifier@8.0.2) + version: 29.7.0(@types/node@20.17.4)(node-notifier@8.0.2) jsdoc: specifier: ^4.0.2 version: 4.0.4 @@ -1557,7 +1566,7 @@ importers: version: 3.2.0 grunt-contrib-nodeunit: specifier: ^4.0.0 - version: 4.0.0(ts-node@8.10.2(typescript@3.9.10))(typescript@3.9.10) + version: 4.0.0(ts-node@8.10.2(typescript@5.6.3))(typescript@5.6.3) grunt-contrib-uglify: specifier: ^5.2.2 version: 5.2.2 @@ -1645,7 +1654,7 @@ importers: version: 5.2.2 jest: specifier: ^29.0.0 - version: 29.7.0(node-notifier@8.0.2) + version: 29.7.0(@types/node@20.17.4)(node-notifier@8.0.2) jest-mock: specifier: ^29.7.0 version: 29.7.0 @@ -1757,7 +1766,7 @@ importers: version: file:packages/loctool/test/ilib-loctool-mock-resource/ilib-loctool-mock-resource-1.0.0.tgz jest: specifier: ^29.7.0 - version: 29.7.0(node-notifier@8.0.2) + version: 29.7.0(@types/node@20.17.4)(node-notifier@8.0.2) packages/message-accumulator: dependencies: @@ -1812,7 +1821,7 @@ importers: version: 5.0.0(coveralls@3.1.1)(typescript@5.6.3) jest: specifier: ^29.7.0 - version: 29.7.0(node-notifier@8.0.2) + version: 29.7.0(@types/node@20.17.4)(node-notifier@8.0.2) jsdoc: specifier: ^4.0.2 version: 4.0.4 @@ -1849,7 +1858,7 @@ importers: version: link:../ilib-tools-common jest: specifier: ^29.7.0 - version: 29.7.0(node-notifier@8.0.2) + version: 29.7.0(@types/node@20.17.4)(node-notifier@8.0.2) jsdoc: specifier: ^4.0.2 version: 4.0.4 @@ -9905,7 +9914,11 @@ snapshots: jest-runner: 26.6.3 jest-runtime: 26.6.3 transitivePeerDependencies: + - bufferutil + - canvas - supports-color + - ts-node + - utf-8-validate '@jest/test-sequencer@29.7.0': dependencies: @@ -10628,7 +10641,7 @@ snapshots: '@babel/core': 7.26.0 find-cache-dir: 4.0.0 schema-utils: 4.2.0 - webpack: 5.95.0(webpack-cli@5.1.4) + webpack: 5.95.0 babel-plugin-add-module-exports@1.0.4: {} @@ -11219,21 +11232,6 @@ snapshots: pify: 4.0.1 safe-buffer: 5.2.1 - create-jest@29.7.0: - dependencies: - '@jest/types': 29.6.3 - chalk: 4.1.2 - exit: 0.1.2 - graceful-fs: 4.2.11 - jest-config: 29.7.0 - jest-util: 29.7.0 - prompts: 2.4.2 - transitivePeerDependencies: - - '@types/node' - - babel-plugin-macros - - supports-color - - ts-node - create-jest@29.7.0(@types/node@12.20.55): dependencies: '@jest/types': 29.6.3 @@ -13427,27 +13425,6 @@ snapshots: - supports-color - ts-node - jest-cli@29.7.0(node-notifier@8.0.2): - dependencies: - '@jest/core': 29.7.0(node-notifier@8.0.2) - '@jest/test-result': 29.7.0 - '@jest/types': 29.6.3 - chalk: 4.1.2 - create-jest: 29.7.0 - exit: 0.1.2 - import-local: 3.2.0 - jest-config: 29.7.0 - jest-util: 29.7.0 - jest-validate: 29.7.0 - yargs: 17.7.2 - optionalDependencies: - node-notifier: 8.0.2 - transitivePeerDependencies: - - '@types/node' - - babel-plugin-macros - - supports-color - - ts-node - jest-config@26.6.3: dependencies: '@babel/core': 7.26.0 @@ -13474,34 +13451,6 @@ snapshots: - supports-color - utf-8-validate - jest-config@29.7.0: - dependencies: - '@babel/core': 7.26.0 - '@jest/test-sequencer': 29.7.0 - '@jest/types': 29.6.3 - babel-jest: 29.7.0(@babel/core@7.26.0) - chalk: 4.1.2 - ci-info: 3.9.0 - deepmerge: 4.3.1 - glob: 7.2.3 - graceful-fs: 4.2.11 - jest-circus: 29.7.0 - jest-environment-node: 29.7.0 - jest-get-type: 29.6.3 - jest-regex-util: 29.6.3 - jest-resolve: 29.7.0 - jest-runner: 29.7.0 - jest-util: 29.7.0 - jest-validate: 29.7.0 - micromatch: 4.0.8 - parse-json: 5.2.0 - pretty-format: 29.7.0 - slash: 3.0.0 - strip-json-comments: 3.1.1 - transitivePeerDependencies: - - babel-plugin-macros - - supports-color - jest-config@29.7.0(@types/node@12.20.55): dependencies: '@babel/core': 7.26.0 @@ -14138,20 +14087,6 @@ snapshots: - supports-color - ts-node - jest@29.7.0(node-notifier@8.0.2): - dependencies: - '@jest/core': 29.7.0(node-notifier@8.0.2) - '@jest/types': 29.6.3 - import-local: 3.2.0 - jest-cli: 29.7.0(node-notifier@8.0.2) - optionalDependencies: - node-notifier: 8.0.2 - transitivePeerDependencies: - - '@types/node' - - babel-plugin-macros - - supports-color - - ts-node - joi@13.7.0: dependencies: hoek: 5.0.4 @@ -17450,6 +17385,36 @@ snapshots: webpack-sources@3.2.3: {} + webpack@5.95.0: + dependencies: + '@types/estree': 1.0.6 + '@webassemblyjs/ast': 1.12.1 + '@webassemblyjs/wasm-edit': 1.12.1 + '@webassemblyjs/wasm-parser': 1.12.1 + acorn: 8.14.0 + acorn-import-attributes: 1.9.5(acorn@8.14.0) + browserslist: 4.24.2 + chrome-trace-event: 1.0.4 + enhanced-resolve: 5.17.1 + es-module-lexer: 1.5.4 + eslint-scope: 5.1.1 + events: 3.3.0 + glob-to-regexp: 0.4.1 + graceful-fs: 4.2.11 + json-parse-even-better-errors: 2.3.1 + loader-runner: 4.3.0 + mime-types: 2.1.35 + neo-async: 2.6.2 + schema-utils: 3.3.0 + tapable: 2.2.1 + terser-webpack-plugin: 5.3.10(webpack@5.95.0) + watchpack: 2.4.2 + webpack-sources: 3.2.3 + transitivePeerDependencies: + - '@swc/core' + - esbuild + - uglify-js + webpack@5.95.0(webpack-cli@4.10.0): dependencies: '@types/estree': 1.0.6