-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: admin jsconfig when building plugin in javascript (#43)
- Loading branch information
1 parent
8be4f65
commit 845a3b0
Showing
3 changed files
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@strapi/sdk-plugin': patch | ||
--- | ||
|
||
add admin jsconfig when building plugin in javascript |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import { outdent } from 'outdent'; | ||
|
||
import type { TemplateFile } from '@strapi/pack-up'; | ||
|
||
const ADMIN: TemplateFile = { | ||
name: 'admin/jsconfig.json', | ||
contents: outdent` | ||
{ | ||
"compilerOptions": { | ||
"target": "es6", | ||
"jsx": "react", | ||
"module": "esnext", | ||
"allowSyntheticDefaultImports": true, | ||
"esModuleInterop": true | ||
}, | ||
"include": [ | ||
"./src/**/*.js", | ||
"./src/**/*.jsx" | ||
] | ||
} | ||
`, | ||
}; | ||
|
||
export { ADMIN as adminJsConfigFile }; |