Merge pull request #8349 from backstage/rugvip/cjs

add more explicit support for .mjs and .cjs extensions
This commit is contained in:
Ben Lambert
2021-12-13 13:35:24 +01:00
committed by GitHub
9 changed files with 30 additions and 10 deletions
+13
View File
@@ -0,0 +1,13 @@
---
'@backstage/create-app': patch
---
Updated the root `package.json` to include files with `.cjs` and `.mjs` extensions in the `"lint-staged"` configuration.
To make this change to an existing app, apply the following changes to the `package.json` file:
```diff
"lint-staged": {
- "*.{js,jsx,ts,tsx}": [
+ "*.{js,jsx,ts,tsx,mjs,cjs}": [
```
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/cli': patch
---
Add support for `.cjs` and `.mjs` extensions in local and dependency modules.