Skip to content

Commit 98337de

Browse files
wgu-taylor-paynearbrandes
authored andcommitted
fix: correct script paths
1 parent d972863 commit 98337de

4 files changed

Lines changed: 13 additions & 11 deletions

File tree

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414
"/types.ts"
1515
],
1616
"bin": {
17-
"intl-imports.js": "tools/dist/cli/scripts/intl-imports.js",
17+
"intl-imports.js": "tools/dist/cli/intl-imports.js",
1818
"openedx": "tools/dist/cli/openedx.js",
19-
"transifex-utils.js": "tools/dist/cli/scripts/transifex-utils.js"
19+
"transifex-utils.js": "tools/dist/cli/transifex-utils.js"
2020
},
2121
"scripts": {
2222
"build": "make build",

test-site/package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tools/cli/README.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,23 @@
1-
# i18n/scripts
1+
# cli
22

33
This directory contains the `transifex-utils.js` and `intl-imports.js` files which are shared across all micro-frontends.
44

55
The package.json of `frontend-base` includes the following sections:
66

77
```
88
"bin": {
9-
"intl-imports.js": "i18n/scripts/intl-imports.js"
10-
"transifex-utils.js": "i18n/scripts/transifex-utils.js"
9+
"intl-imports.js": "tools/dist/cli/intl-imports.js",
10+
"openedx": "tools/dist/cli/openedx.js",
11+
"transifex-utils.js": "tools/dist/cli/transifex-utils.js"
1112
},
1213
```
1314

14-
This config block causes boths scripts to be copied to the following path when `frontend-base` is installed as a
15+
This config block causes the scripts to be copied to the following path when `frontend-base` is installed as a
1516
dependency of a micro-frontend:
1617

1718
```
1819
/node_modules/.bin/intl-imports.js
20+
/node_modules/.bin/openedx
1921
/node_modules/.bin/transifex-utils.js
2022
```
2123

@@ -26,4 +28,4 @@ intl_imports = ./node_modules/.bin/intl-imports.js
2628
transifex_utils = ./node_modules/.bin/transifex-utils.js
2729
```
2830

29-
So if you delete either of the files or the `scripts` directory, you'll break all micro-frontend builds. Happy coding!
31+
So if you delete either of the files or the `cli` directory, you'll break all micro-frontend builds. Happy coding!

0 commit comments

Comments
 (0)