@create-node-app/core 0.3.10 → 0.3.12

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.
package/dist/index.d.ts CHANGED
@@ -9,10 +9,9 @@ declare const printEnvInfo: () => Promise<never>;
9
9
  type CnaOptions = {
10
10
  projectName: string;
11
11
  info?: boolean;
12
- interactive?: boolean;
13
12
  verbose?: boolean;
14
13
  packageManager?: string;
15
- nodeps?: boolean;
14
+ install?: boolean;
16
15
  template?: string;
17
16
  templatesOrExtensions?: TemplateOrExtension[];
18
17
  } & {
@@ -24,11 +23,10 @@ type CnaOptionsTransform = (options: CnaOptions) => Promise<CnaOptions>;
24
23
  * @param programName - Name of the program to bootstrap the Node application
25
24
  * @param options - CnaOptions to bootstrap the Node application
26
25
  * @param options.info - Print environment debug info
27
- * @param options.interactive - Specify if it is needed to use interactive mode or not
28
26
  * @param options.verbose - Specify if it is needed to use verbose mode or not
29
27
  * @param options.projectName - Project's name
30
28
  * @param options.packageManager - Package manager to use
31
- * @param options.nodeps - Generate package.json file without installing dependencies
29
+ * @param options.install - Generate package.json file installing dependencies
32
30
  * @param options.template - Template to bootstrap the aplication
33
31
  * @param options.extend - Extensions to apply for the boilerplate generation
34
32
  * @param options.templatesOrExtensions - Official extensions to apply
package/dist/index.js CHANGED
@@ -7541,7 +7541,7 @@ var install = async (root, useYarn = false, usePnpm = false, dependencies = [],
7541
7541
  }
7542
7542
  } else if (usePnpm) {
7543
7543
  command = "pnpm";
7544
- args = ["install", "--ignore-workspace-root-check", "--loglevel", "error"];
7544
+ args = ["install", "--ignore-workspace", "--loglevel", "error"];
7545
7545
  if (isDevDependencies) {
7546
7546
  args.push("--save-dev");
7547
7547
  } else {
@@ -7889,8 +7889,8 @@ var printEnvInfo = async () => {
7889
7889
  console.log(import_chalk4.default.bold("\nEnvironment Info:"));
7890
7890
  const info = await import_envinfo.default.run(
7891
7891
  {
7892
- System: ["OS", "CPU"],
7893
- Binaries: ["Node", "npm", "Yarn"],
7892
+ System: ["OS", "CPU", "Memory", "Shell"],
7893
+ Binaries: ["Node", "npm", "pnpm", "Yarn", "Watchman"],
7894
7894
  Browsers: ["Chrome", "Edge", "Internet Explorer", "Firefox", "Safari"]
7895
7895
  },
7896
7896
  {
@@ -7923,7 +7923,7 @@ var createNodeApp = async (programName, options, transformOptions) => {
7923
7923
  await createApp({
7924
7924
  ...appOptions,
7925
7925
  name: appOptions.projectName,
7926
- installDependencies: !options.nodeps
7926
+ installDependencies: options.install
7927
7927
  });
7928
7928
  };
7929
7929
  // Annotate the CommonJS export names for ESM import in node:
package/dist/index.mjs CHANGED
@@ -7534,7 +7534,7 @@ var install = async (root, useYarn = false, usePnpm = false, dependencies = [],
7534
7534
  }
7535
7535
  } else if (usePnpm) {
7536
7536
  command = "pnpm";
7537
- args = ["install", "--ignore-workspace-root-check", "--loglevel", "error"];
7537
+ args = ["install", "--ignore-workspace", "--loglevel", "error"];
7538
7538
  if (isDevDependencies) {
7539
7539
  args.push("--save-dev");
7540
7540
  } else {
@@ -7882,8 +7882,8 @@ var printEnvInfo = async () => {
7882
7882
  console.log(chalk4.bold("\nEnvironment Info:"));
7883
7883
  const info = await envinfo.run(
7884
7884
  {
7885
- System: ["OS", "CPU"],
7886
- Binaries: ["Node", "npm", "Yarn"],
7885
+ System: ["OS", "CPU", "Memory", "Shell"],
7886
+ Binaries: ["Node", "npm", "pnpm", "Yarn", "Watchman"],
7887
7887
  Browsers: ["Chrome", "Edge", "Internet Explorer", "Firefox", "Safari"]
7888
7888
  },
7889
7889
  {
@@ -7916,7 +7916,7 @@ var createNodeApp = async (programName, options, transformOptions) => {
7916
7916
  await createApp({
7917
7917
  ...appOptions,
7918
7918
  name: appOptions.projectName,
7919
- installDependencies: !options.nodeps
7919
+ installDependencies: options.install
7920
7920
  });
7921
7921
  };
7922
7922
  export {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@create-node-app/core",
3
- "version": "0.3.10",
3
+ "version": "0.3.12",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -41,7 +41,7 @@
41
41
  "cross-spawn": "^6.0.5",
42
42
  "debug": "^4.2.0",
43
43
  "download": "^8.0.0",
44
- "envinfo": "^7.7.4",
44
+ "envinfo": "^7.10.0",
45
45
  "lodash.merge": "^4.6.2",
46
46
  "readdirp": "^3.4.0",
47
47
  "semver": "^5.7.2",