create-storybook
Advanced tools
Comparing version 0.0.0-pr-28768-sha-f4bf860e to 0.0.0-pr-28797-sha-2c38805d
@@ -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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 3 instances in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
208732
1
10
263
11
262
861604
16
36
730
2
+ Added@types/fs-extra@^11.0.4
+ Added@ndelangen/fs-extra-unified@1.0.4(transitive)
+ Added@storybook/core@0.0.0-pr-28797-sha-2c38805d(transitive)
+ Added@types/fs-extra@11.0.4(transitive)
+ Added@types/jsonfile@6.1.4(transitive)
+ Added@types/node@22.10.10(transitive)
+ Addedcommander@12.1.0(transitive)
+ Addedstorybook@0.0.0-pr-28797-sha-2c38805d(transitive)
+ Addedundici-types@6.20.0(transitive)
- Removed@storybook/core@0.0.0-pr-28768-sha-f4bf860e(transitive)
- Removed@types/node@18.19.74(transitive)
- Removedcommander@6.2.1(transitive)
- Removedstorybook@0.0.0-pr-28768-sha-f4bf860e(transitive)
- Removedundici-types@5.26.5(transitive)
Updatedcommander@^12.1.0