create-storm-workspace
Advanced tools
Comparing version 1.56.14 to 1.56.15
@@ -6,6 +6,3 @@ #!/usr/bin/env node | ||
import { getNpmPackageVersion } from "@nx/workspace/src/generators/utils/get-npm-package-version"; | ||
import type { | ||
NxClientMode, | ||
PresetGeneratorSchema | ||
} from "@storm-software/workspace-tools"; | ||
import type { NxClientMode, PresetGeneratorSchema } from "@storm-software/workspace-tools"; | ||
import { createWorkspace } from "create-nx-workspace"; | ||
@@ -16,12 +13,12 @@ import { prompt } from "enquirer"; | ||
try { | ||
console.log(`⚡ Collecting required info to creating a Storm Workspace`); | ||
console.log("⚡ Collecting required info to creating a Storm Workspace"); | ||
["SIGTERM", "SIGINT", "SIGUSR2"].map(type => { | ||
process.once(type, async () => { | ||
["SIGTERM", "SIGINT", "SIGUSR2"].map((type) => { | ||
process.once(type, () => { | ||
try { | ||
console.info(`process.on ${type}`); | ||
console.info(`shutdown process done, exiting with code 0`); | ||
console.info("shutdown process done, exiting with code 0"); | ||
process.exit(0); | ||
} catch (e) { | ||
console.warn(`shutdown process failed, exiting with code 1`); | ||
console.warn("shutdown process failed, exiting with code 1"); | ||
console.error(e); | ||
@@ -65,6 +62,3 @@ process.exit(1); | ||
let includeApps = | ||
process.argv.length > 5 && process.argv[5] | ||
? Boolean(process.argv[5]) | ||
: null; | ||
let includeApps = process.argv.length > 5 && process.argv[5] ? Boolean(process.argv[5]) : null; | ||
if (!includeApps && typeof includeApps !== "boolean") { | ||
@@ -101,5 +95,3 @@ const response = await prompt<{ includeApps: boolean }>({ | ||
message: "What is the workspace's Git repository's URL?", | ||
initial: `https://github.com/${ | ||
organization ? organization : "storm-software" | ||
}/${name}` | ||
initial: `https://github.com/${organization ? organization : "storm-software"}/${name}` | ||
}); | ||
@@ -109,6 +101,3 @@ repositoryUrl = response.repositoryUrl; | ||
let nxCloud = | ||
process.argv.length > 8 && process.argv[8] | ||
? Boolean(process.argv[8]) | ||
: null; | ||
let nxCloud = process.argv.length > 8 && process.argv[8] ? Boolean(process.argv[8]) : null; | ||
if (!nxCloud && typeof nxCloud !== "boolean") { | ||
@@ -125,5 +114,3 @@ const response = await prompt<{ nxCloud: boolean }>({ | ||
let mode: NxClientMode = ( | ||
process.argv.length > 9 ? process.argv[9] : null | ||
) as NxClientMode; | ||
let mode: NxClientMode = (process.argv.length > 9 ? process.argv[9] : null) as NxClientMode; | ||
if (!mode) { | ||
@@ -147,16 +134,17 @@ mode = ( | ||
const version = getNpmPackageVersion("@storm-software/workspace-tools"); | ||
const { directory } = await createWorkspace< | ||
PresetGeneratorSchema & { interactive: boolean } | ||
>(`@storm-software/workspace-tools@${version ? version : "latest"}`, { | ||
name, | ||
organization, | ||
namespace, | ||
description, | ||
includeApps, | ||
repositoryUrl, | ||
packageManager: "pnpm", | ||
nxCloud: false, | ||
mode: "dark", | ||
interactive: false | ||
}); | ||
const { directory } = await createWorkspace<PresetGeneratorSchema & { interactive: boolean }>( | ||
`@storm-software/workspace-tools@${version ? version : "latest"}`, | ||
{ | ||
name, | ||
organization, | ||
namespace, | ||
description, | ||
includeApps, | ||
repositoryUrl, | ||
nxCloud: "skip", | ||
packageManager: "pnpm", | ||
mode: "dark", | ||
interactive: false | ||
} | ||
); | ||
@@ -163,0 +151,0 @@ console.log(`⚡ Successfully created the workspace: ${directory}.`); |
{ | ||
"name": "create-storm-workspace", | ||
"version": "1.56.14", | ||
"version": "1.56.15", | ||
"private": false, | ||
@@ -37,4 +37,4 @@ "description": "⚡A CLI tool used to generate and fully configure a Storm Workspace repository.", | ||
"dependencies": { | ||
"@nx/workspace": "17.2.8", | ||
"create-nx-workspace": "17.2.8", | ||
"@nx/workspace": "18.0.4", | ||
"create-nx-workspace": "18.0.4", | ||
"enquirer": "2.4.1" | ||
@@ -41,0 +41,0 @@ }, |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
442439
1193
+ Added@nrwl/devkit@18.0.4(transitive)
+ Added@nrwl/tao@18.0.4(transitive)
+ Added@nrwl/workspace@18.0.4(transitive)
+ Added@nx/devkit@18.0.4(transitive)
+ Added@nx/nx-darwin-arm64@18.0.4(transitive)
+ Added@nx/nx-darwin-x64@18.0.4(transitive)
+ Added@nx/nx-freebsd-x64@18.0.4(transitive)
+ Added@nx/nx-linux-arm-gnueabihf@18.0.4(transitive)
+ Added@nx/nx-linux-arm64-gnu@18.0.4(transitive)
+ Added@nx/nx-linux-arm64-musl@18.0.4(transitive)
+ Added@nx/nx-linux-x64-gnu@18.0.4(transitive)
+ Added@nx/nx-linux-x64-musl@18.0.4(transitive)
+ Added@nx/nx-win32-arm64-msvc@18.0.4(transitive)
+ Added@nx/nx-win32-x64-msvc@18.0.4(transitive)
+ Added@nx/workspace@18.0.4(transitive)
+ Addedcreate-nx-workspace@18.0.4(transitive)
+ Addedminimatch@9.0.3(transitive)
+ Addednx@18.0.4(transitive)
+ Addedsemver@7.6.3(transitive)
- Removed@nrwl/devkit@17.2.8(transitive)
- Removed@nrwl/tao@17.2.8(transitive)
- Removed@nrwl/workspace@17.2.8(transitive)
- Removed@nx/devkit@17.2.8(transitive)
- Removed@nx/nx-darwin-arm64@17.2.8(transitive)
- Removed@nx/nx-darwin-x64@17.2.8(transitive)
- Removed@nx/nx-freebsd-x64@17.2.8(transitive)
- Removed@nx/nx-linux-arm-gnueabihf@17.2.8(transitive)
- Removed@nx/nx-linux-arm64-gnu@17.2.8(transitive)
- Removed@nx/nx-linux-arm64-musl@17.2.8(transitive)
- Removed@nx/nx-linux-x64-gnu@17.2.8(transitive)
- Removed@nx/nx-linux-x64-musl@17.2.8(transitive)
- Removed@nx/nx-win32-arm64-msvc@17.2.8(transitive)
- Removed@nx/nx-win32-x64-msvc@17.2.8(transitive)
- Removed@nx/workspace@17.2.8(transitive)
- Removedcreate-nx-workspace@17.2.8(transitive)
- Removedfs.realpath@1.0.0(transitive)
- Removedglob@7.1.4(transitive)
- Removedinflight@1.0.6(transitive)
- Removedlru-cache@6.0.0(transitive)
- Removedminimatch@3.0.5(transitive)
- Removednx@17.2.8(transitive)
- Removedpath-is-absolute@1.0.1(transitive)
- Removedsemver@7.5.3(transitive)
- Removedyallist@4.0.0(transitive)
Updated@nx/workspace@18.0.4
Updatedcreate-nx-workspace@18.0.4