From 71b5a248535568a49ebff9d774c91e1cd127172c Mon Sep 17 00:00:00 2001 From: Taylor Payne Date: Wed, 7 Jan 2026 15:06:47 -0700 Subject: [PATCH] fix: correct script paths --- package-lock.json | 4 ++-- package.json | 4 ++-- test-site/package-lock.json | 4 ++-- tools/cli/README.md | 12 +++++++----- 4 files changed, 13 insertions(+), 11 deletions(-) diff --git a/package-lock.json b/package-lock.json index a9ce78dc..339efa99 100644 --- a/package-lock.json +++ b/package-lock.json @@ -93,9 +93,9 @@ "webpack-remove-empty-scripts": "1.0.4" }, "bin": { - "intl-imports.js": "tools/dist/cli/scripts/intl-imports.js", + "intl-imports.js": "tools/dist/cli/intl-imports.js", "openedx": "tools/dist/cli/openedx.js", - "transifex-utils.js": "tools/dist/cli/scripts/transifex-utils.js" + "transifex-utils.js": "tools/dist/cli/transifex-utils.js" }, "devDependencies": { "@edx/browserslist-config": "^1.5.0", diff --git a/package.json b/package.json index d0ad763c..bca3a2db 100644 --- a/package.json +++ b/package.json @@ -14,9 +14,9 @@ "/types.ts" ], "bin": { - "intl-imports.js": "tools/dist/cli/scripts/intl-imports.js", + "intl-imports.js": "tools/dist/cli/intl-imports.js", "openedx": "tools/dist/cli/openedx.js", - "transifex-utils.js": "tools/dist/cli/scripts/transifex-utils.js" + "transifex-utils.js": "tools/dist/cli/transifex-utils.js" }, "scripts": { "build": "make build", diff --git a/test-site/package-lock.json b/test-site/package-lock.json index f40c8641..22dc183e 100644 --- a/test-site/package-lock.json +++ b/test-site/package-lock.json @@ -3812,9 +3812,9 @@ "webpack-remove-empty-scripts": "1.0.4" }, "bin": { - "intl-imports.js": "tools/dist/cli/scripts/intl-imports.js", + "intl-imports.js": "tools/dist/cli/intl-imports.js", "openedx": "tools/dist/cli/openedx.js", - "transifex-utils.js": "tools/dist/cli/scripts/transifex-utils.js" + "transifex-utils.js": "tools/dist/cli/transifex-utils.js" }, "peerDependencies": { "@openedx/paragon": "^23.4.5", diff --git a/tools/cli/README.md b/tools/cli/README.md index fe243722..86eac45c 100644 --- a/tools/cli/README.md +++ b/tools/cli/README.md @@ -1,4 +1,4 @@ -# i18n/scripts +# cli This directory contains the `transifex-utils.js` and `intl-imports.js` files which are shared across all micro-frontends. @@ -6,16 +6,18 @@ The package.json of `frontend-base` includes the following sections: ``` "bin": { - "intl-imports.js": "i18n/scripts/intl-imports.js" - "transifex-utils.js": "i18n/scripts/transifex-utils.js" + "intl-imports.js": "tools/dist/cli/intl-imports.js", + "openedx": "tools/dist/cli/openedx.js", + "transifex-utils.js": "tools/dist/cli/transifex-utils.js" }, ``` -This config block causes boths scripts to be copied to the following path when `frontend-base` is installed as a +This config block causes the scripts to be copied to the following path when `frontend-base` is installed as a dependency of a micro-frontend: ``` /node_modules/.bin/intl-imports.js +/node_modules/.bin/openedx /node_modules/.bin/transifex-utils.js ``` @@ -26,4 +28,4 @@ intl_imports = ./node_modules/.bin/intl-imports.js transifex_utils = ./node_modules/.bin/transifex-utils.js ``` -So if you delete either of the files or the `scripts` directory, you'll break all micro-frontend builds. Happy coding! +So if you delete either of the files or the `cli` directory, you'll break all micro-frontend builds. Happy coding!