Skip to content

Commit 84f8b6a

Browse files
committed
Experiment with using mjs extension
1 parent ac6d727 commit 84f8b6a

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"url": "git://github.com/codegouvfr/react-dsfr.git"
88
},
99
"scripts": {
10-
"build": "ts-node -T src/scripts/build",
10+
"build": "ts-node -T src/scripts/build && mv dist/bin . && js2mjs dist && mv bin dist",
1111
"_link": "ts-node -T src/scripts/link-in-integration-apps.ts",
1212
"link-external": "ts-node -T src/scripts/link-in-external-project.ts",
1313
"start-cra": "yarn build && yarn _link && ((tsc -w -p src) & (cd test/integration/cra && yarn start))",

yarn.lock

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8095,6 +8095,14 @@ js-yaml@^4.1.0:
80958095
dependencies:
80968096
argparse "^2.0.1"
80978097

8098+
js2mjs@^0.3.0:
8099+
version "0.3.0"
8100+
resolved "https://registry.yarnpkg.com/js2mjs/-/js2mjs-0.3.0.tgz#4db5f4e31dae63ee661f689e853308b138bbc58e"
8101+
integrity sha512-jiejhgZW09Y7m4IMQbsosFWHwPLeskSS5Ybd1lrf3RskjkHd6XaLtNFO+oy6G+tzHc6mmxHXcQLKbfgRrTRgrA==
8102+
dependencies:
8103+
commander "^4.1.1"
8104+
tsafe "^1.4.1"
8105+
80988106
jsesc@^2.5.1:
80998107
version "2.5.2"
81008108
resolved "https://registry.yarnpkg.com/jsesc/-/jsesc-2.5.2.tgz#80564d2e483dacf6e8ef209650a67df3f0c283a4"

0 commit comments

Comments
 (0)