New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

create-storybook

Package Overview
Dependencies
Maintainers
0
Versions
263
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

create-storybook - npm Package Compare versions

Comparing version 0.0.0-pr-28768-sha-f4bf860e to 0.0.0-pr-28797-sha-2c38805d

dist/chunk-N2RH5VTY.js

14

dist/bin/index.js

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

import { initiate } from '../chunk-ZBOTO4UW.js';
import program from 'commander';
import ESM_COMPAT_Module from 'node:module';
import { fileURLToPath } from 'node:url';
import { dirname } from 'node:path';
import { initiate } from '../chunk-N2RH5VTY.js';
import { versions } from 'storybook/internal/common';
import { addToGlobalContext } from 'storybook/internal/telemetry';
import { program } from 'commander';
import { findPackageSync } from 'fd-package-json';
import invariant from 'tiny-invariant';
import { addToGlobalContext } from 'storybook/internal/telemetry';
import { versions } from 'storybook/internal/common';
const __filename = fileURLToPath(import.meta.url);
const __dirname = dirname(__filename);
ESM_COMPAT_Module.createRequire(import.meta.url);
addToGlobalContext("cliVersion",versions.storybook);var pkg=findPackageSync(__dirname);invariant(pkg,"Failed to find the closest package.json file.");program.name("Initialize Storybook into your project.").option("--disable-telemetry","Disable sending telemetry data",process.env.STORYBOOK_DISABLE_TELEMETRY&&process.env.STORYBOOK_DISABLE_TELEMETRY!=="false").option("--debug","Get more logs in debug mode",!1).option("--enable-crash-reports","Enable sending crash reports to telemetry data").option("-f --force","Force add Storybook").option("-s --skip-install","Skip installing deps").option("--package-manager <npm|pnpm|yarn1|yarn2>","Force package manager for installing deps").option("--use-pnp","Enable pnp mode for Yarn 2+").option("-p --parser <babel | babylon | flow | ts | tsx>","jscodeshift parser").option("-t --type <type>","Add Storybook for a specific project type").option("-y --yes","Answer yes to all prompts").option("-b --builder <webpack5 | vite>","Builder library").option("-l --linkable","Prepare installation for link (contributor helper)").option("--dev","Launch the development server after completing initialization. Enabled by default",process.env.CI!=="true"&&process.env.IN_STORYBOOK_SANDBOX!=="true").option("--no-dev","Complete the initialization of Storybook without launching the Storybook development server").action(options=>{initiate(options).catch(()=>process.exit(1));}).version(String(pkg.version)).parse(process.argv);

@@ -0,3 +1,3 @@

import { ProjectType, Builder } from 'storybook/internal/cli';
import { PackageManagerName, JsPackageManager } from 'storybook/internal/common';
import { ProjectType, Builder } from 'storybook/internal/cli';

@@ -4,0 +4,0 @@ type CommandOptions = {

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

export { doInitiate as initiate } from './chunk-ZBOTO4UW.js';
import ESM_COMPAT_Module from 'node:module';
import { fileURLToPath } from 'node:url';
import { dirname } from 'node:path';
export { doInitiate as initiate } from './chunk-N2RH5VTY.js';
const __filename = fileURLToPath(import.meta.url);
dirname(__filename);
ESM_COMPAT_Module.createRequire(import.meta.url);
{
"name": "create-storybook",
"version": "0.0.0-pr-28768-sha-f4bf860e",
"version": "0.0.0-pr-28797-sha-2c38805d",
"description": "Initialize Storybook into your project",

@@ -24,8 +24,5 @@ "homepage": "https://github.com/storybookjs/storybook/tree/next/code/lib/create-storybook",

"types": "./dist/index.d.ts",
"node": "./dist/index.cjs",
"import": "./dist/index.js",
"require": "./dist/index.cjs"
"import": "./dist/index.js"
},
"./bin/index.cjs": {
"node": "./bin/index.cjs",
"require": "./bin/index.cjs"

@@ -35,3 +32,2 @@ },

},
"main": "dist/index.cjs",
"module": "dist/index.js",

@@ -56,9 +52,11 @@ "types": "dist/index.d.ts",

"scripts": {
"check": "node --loader ../../../scripts/node_modules/esbuild-register/loader.js -r ../../../scripts/node_modules/esbuild-register/register.js ../../../scripts/prepare/check.ts",
"prep": "node --loader ../../../scripts/node_modules/esbuild-register/loader.js -r ../../../scripts/node_modules/esbuild-register/register.js ../../../scripts/prepare/bundle.ts"
"check": "jiti ../../../scripts/prepare/check.ts",
"prep": "jiti ../../../scripts/prepare/bundle.ts"
},
"dependencies": {
"@ndelangen/fs-extra-unified": "^1.0.4",
"@types/fs-extra": "^11.0.4",
"@types/semver": "^7.3.4",
"chalk": "^4.1.0",
"commander": "^6.2.1",
"commander": "^12.1.0",
"execa": "^5.0.0",

@@ -72,3 +70,3 @@ "fd-package-json": "^1.2.0",

"semver": "^7.3.7",
"storybook": "0.0.0-pr-28768-sha-f4bf860e",
"storybook": "0.0.0-pr-28797-sha-2c38805d",
"tiny-invariant": "^1.3.1",

@@ -91,2 +89,5 @@ "ts-dedent": "^2.0.0"

],
"formats": [
"esm"
],
"platform": "node"

@@ -93,0 +94,0 @@ },

{
"rules": {
"no-undef": "off",
"@typescript-eslint/ban-types": "off",
"react/prop-types": "off",
"react/react-in-jsx-scope": "off",
"import/extensions": "off",
"import/no-unresolved": "off",
"import/no-extraneous-dependencies": "off"
"import/extensions": "off"
},

@@ -11,0 +8,0 @@ "overrides": [

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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