Skip to content

Commit 85b4c80

Browse files
authored
Fix: Api Mode (#328)
* chore: add main field to package.json * fix: isApi to apiMode * fix: destructure answers into pluginAnswers * chore: bump version
1 parent 6b0974c commit 85b4c80

File tree

5 files changed

+14
-15
lines changed

5 files changed

+14
-15
lines changed

.github/reviewer-lottery.yml

+8-10
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
groups:
2-
- name: devs
3-
reviewers: 4
4-
usernames:
5-
- omeraplak
6-
- salihozdemir
7-
- mhrrmk
8-
- necatiozmen
9-
- yildirayunlu
10-
- umucorn
11-
- biskuvit
2+
- name: devs
3+
reviewers: 4
4+
usernames:
5+
- omeraplak
6+
- salihozdemir
7+
- yildirayunlu
8+
- aliemir
9+
- batuhanw

package-lock.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "superplate-cli",
3-
"version": "1.12.1",
3+
"version": "1.12.2",
44
"description": "The frontend boilerplate with superpowers",
55
"license": "MIT",
66
"repository": {
@@ -11,6 +11,7 @@
1111
"url": "https://github.com/pankod/superplate/issues"
1212
},
1313
"homepage": "https://pankod.github.io/superplate/",
14+
"main": "lib/api.js",
1415
"bin": {
1516
"superplate": "lib/index.js"
1617
},

src/api.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export const api = async (
2222
appName: applicationName,
2323
answers: true,
2424
extras: {
25-
isApi: true,
25+
apiMode: true,
2626
debug: false,
2727
projectType: preset.type,
2828
paths: {

src/saofile.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ const saoConfig: GeneratorConfig = {
103103
const { sourcePath } = sao.opts.extras.paths;
104104
const { projectType } = sao.opts.extras;
105105

106-
const pluginAnswers = answers;
106+
const pluginAnswers = { ...answers };
107107
delete pluginAnswers.name;
108108
const selectedPlugins = getPluginsArray(pluginAnswers);
109109

0 commit comments

Comments
 (0)