diff --git a/.gitignore b/.gitignore index c21d7195..c71e6b10 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ node_modules/ lib/ .DS_* -**/node_modules \ No newline at end of file +**/node_modules +tmp \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index eb85a25e..76bea22a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "superplate-cli", - "version": "1.18.2", + "version": "1.19.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "superplate-cli", - "version": "1.18.2", + "version": "1.19.0", "license": "MIT", "dependencies": { "chalk": "^4.1.0", diff --git a/package.json b/package.json index 9fbf2cdb..b6045e9d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "superplate-cli", - "version": "1.18.2", + "version": "1.19.0", "description": "The frontend boilerplate with superpowers", "license": "MIT", "repository": { diff --git a/src/saofile.ts b/src/saofile.ts index 89380a67..cdd7a492 100644 --- a/src/saofile.ts +++ b/src/saofile.ts @@ -189,6 +189,14 @@ const saoConfig: GeneratorConfig = { method: "POST", body: JSON.stringify({ email: emailPromptResult.userEmail || answers.userEmail, + answers: { + ...answers, + projectType: sao.opts.extras.projectType, + }, + source: + sao.opts.extras.apiMode === false + ? "CREATE_REFINE_APP" + : "REFINE_NEW", }), headers: { "Content-Type": "application/json" }, }, diff --git a/tsconfig.json b/tsconfig.json index 70704660..620d5182 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,5 +1,5 @@ { - "exclude": ["template/", "lib/", "templates/"], + "exclude": ["template/", "lib/", "templates/", "tmp/"], "compilerOptions": { "target": "es5" /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019', 'ES2020', or 'ESNEXT'. */, "module": "commonjs" /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', 'es2020', or 'ESNext'. */, @@ -25,7 +25,7 @@ "forceConsistentCasingInFileNames": true /* Disallow inconsistently-cased references to the same file. */, "paths": { "@Helper": ["./Helper"], - "@Helper/*": ["./Helper/*"], + "@Helper/*": ["./Helper/*"] } } }