Socket
Socket
Sign inDemoInstall

create-storm-workspace

Package Overview
Dependencies
Maintainers
1
Versions
481
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

create-storm-workspace - npm Package Compare versions

Comparing version 1.56.14 to 1.56.15

62

bin/index.ts

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc