create-manifest 1.3.0 → 1.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -14,7 +14,7 @@ import { updatePackageJsonFile } from '../utils/UpdatePackageJsonFile.js';
14
14
  import { updateSettingsJsonFile } from '../utils/UpdateSettingsJsonFile.js';
15
15
  import { getLatestPackageVersion } from '../utils/GetLatestPackageVersion.js';
16
16
  import { getBackendFileContent } from '../utils/GetBackendFileContent.js';
17
- import { input, select } from '@inquirer/prompts';
17
+ import { input } from '@inquirer/prompts';
18
18
  import { slugify } from '../utils/helpers.js';
19
19
  import chalk from 'chalk';
20
20
  const exec = promisify(execCp);
@@ -58,7 +58,8 @@ export default class CreateManifest extends Command {
58
58
  // * 1 Create a folder named after the first argument or ask for it.
59
59
  const { argv } = await this.parse(CreateManifest);
60
60
  let projectName = argv[0];
61
- let isMonorepo = argv[1] === 'monorepo';
61
+ // let isMonorepo: boolean = argv[1] === 'monorepo'
62
+ const isMonorepo = false; // Hide this feature.
62
63
  if (!projectName) {
63
64
  projectName = await input({
64
65
  message: 'What name would you like to use for the new workspace?',
@@ -74,24 +75,24 @@ export default class CreateManifest extends Command {
74
75
  }
75
76
  });
76
77
  }
77
- if (!isMonorepo) {
78
- const projectType = await select({
79
- message: 'What type of project would you like to develop?',
80
- choices: [
81
- {
82
- name: 'A full-stack app (monorepo)',
83
- value: 'monorepo',
84
- description: 'Creates a monorepo with both "web" and "api" folders'
85
- },
86
- {
87
- name: 'A standalone backend',
88
- value: 'standalone',
89
- description: 'Creates a backend-only project'
90
- }
91
- ]
92
- });
93
- isMonorepo = projectType === 'monorepo';
94
- }
78
+ // if (!isMonorepo) {
79
+ // const projectType = await select({
80
+ // message: 'What type of project would you like to develop?',
81
+ // choices: [
82
+ // {
83
+ // name: 'A full-stack app (monorepo)',
84
+ // value: 'monorepo',
85
+ // description: 'Creates a monorepo with both "web" and "api" folders'
86
+ // },
87
+ // {
88
+ // name: 'A standalone backend',
89
+ // value: 'standalone',
90
+ // description: 'Creates a backend-only project'
91
+ // }
92
+ // ]
93
+ // })
94
+ // isMonorepo = projectType === 'monorepo'
95
+ // }
95
96
  projectName = slugify(projectName);
96
97
  const spinner = ora(`Creating your Manifest project in ${projectName} folder...`).start();
97
98
  const rootFolderPath = path.join(process.cwd(), projectName);
@@ -43,5 +43,5 @@
43
43
  "enableJsonFlag": false
44
44
  }
45
45
  },
46
- "version": "1.3.0"
46
+ "version": "1.3.1"
47
47
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-manifest",
3
- "version": "1.3.0",
3
+ "version": "1.3.1",
4
4
  "author": "Manifest",
5
5
  "description": "Create a new Manifest backend",
6
6
  "homepage": "https://manifest.build",