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.5.15 to 1.5.16

68

bin/index.ts

@@ -6,3 +6,6 @@ #!/usr/bin/env node

import { getNpmPackageVersion } from "@nx/workspace/src/generators/utils/get-npm-package-version";
import type { PresetGeneratorSchema } from "@storm-software/workspace-tools";
import type {
NxClientMode,
PresetGeneratorSchema
} from "@storm-software/workspace-tools";
import { createWorkspace } from "create-nx-workspace";

@@ -13,2 +16,4 @@ import { prompt } from "enquirer";

try {
console.log(`⚡ Collecting required info to creating a Storm Workspace`);
let name = process.argv.length > 2 ? process.argv[2] : null;

@@ -88,19 +93,52 @@ if (!name) {

let nxCloud =
process.argv.length > 8 && process.argv[8]
? Boolean(process.argv[8])
: null;
if (!nxCloud && typeof nxCloud !== "boolean") {
const response = await prompt<{ nxCloud: boolean }>({
type: "confirm",
name: "nxCloud",
message:
"Should Nx Cloud be enabled for the workspace (allows for remote workspace caching)?",
initial: false
});
nxCloud = response.nxCloud;
}
let mode: NxClientMode = (
process.argv.length > 9 ? process.argv[9] : null
) as NxClientMode;
if (!mode) {
mode = (
await prompt<{ mode: "light" | "dark" }>({
name: "mode",
message: "Which mode should be used?",
initial: "dark" as any,
type: "autocomplete",
choices: [
{ name: "light", message: "light" },
{ name: "dark", message: "dark" }
]
})
).mode;
}
console.log(`⚡ Creating the Storm Workspace: ${name}`);
const version = getNpmPackageVersion("@storm-software/workspace-tools");
const { directory } = await createWorkspace<PresetGeneratorSchema>(
`@storm-software/workspace-tools@${version ? version : "latest"}`,
{
name,
organization,
namespace,
description,
includeApps,
repositoryUrl,
packageManager: "pnpm",
nxCloud: false,
mode: "dark"
}
);
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
});

@@ -107,0 +145,0 @@ console.log(`⚡ Successfully created the workspace: ${directory}.`);

@@ -0,1 +1,8 @@

## [1.5.15](https://github.com/storm-software/storm-ops/compare/create-storm-workspace-v1.5.14...create-storm-workspace-v1.5.15) (2023-11-08)
### Bug Fixes
* **workspace-tools:** Resolved husky install error thrown in preset ([a24d783](https://github.com/storm-software/storm-ops/commit/a24d783a1402f3bc7232b8c9195a6ea01322533c))
## [1.5.14](https://github.com/storm-software/storm-ops/compare/create-storm-workspace-v1.5.13...create-storm-workspace-v1.5.14) (2023-11-08)

@@ -2,0 +9,0 @@

{
"name": "create-storm-workspace",
"version": "1.5.15",
"version": "1.5.16",
"private": false,

@@ -5,0 +5,0 @@ "description": "⚡A CLI tool used to generate and fully configure a Storm Workspace repository.",

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