storybook-addon-root-attributes
Advanced tools
Comparing version 2.0.3 to 2.1.0
module.exports = { | ||
root: true, | ||
parser: "@typescript-eslint/parser", | ||
extends: [ | ||
"react-app", | ||
"airbnb-typescript", | ||
"prettier", | ||
"plugin:storybook/recommended", | ||
], | ||
extends: ["react-app", "airbnb-typescript", "prettier", "plugin:storybook/recommended"], | ||
parserOptions: { | ||
project: "./tsconfig.eslint.json", | ||
}, | ||
plugins: [ | ||
"@typescript-eslint/eslint-plugin", | ||
"json-format", | ||
"prettier", | ||
"simple-import-sort", | ||
], | ||
plugins: ["@typescript-eslint/eslint-plugin", "json-format", "prettier", "simple-import-sort"], | ||
rules: { | ||
@@ -36,3 +26,3 @@ "import/no-extraneous-dependencies": "off", | ||
trailingComma: "all", | ||
printWidth: 80, | ||
printWidth: 120, | ||
arrowParens: "always", | ||
@@ -39,0 +29,0 @@ }, |
{ | ||
"name": "storybook-addon-root-attributes", | ||
"version": "2.0.3", | ||
"version": "2.1.0", | ||
"description": "Storybook Addon Root Attributes to switch `Many` html or body attribute at runtime for your story (work in storybook 7!)", | ||
@@ -18,5 +18,7 @@ "keywords": [ | ||
"author": "Jung Hyeon-su", | ||
"main": "dist/cjs/index.js", | ||
"module": "dist/esm/index.js", | ||
"types": "dist/ts/index.d.ts", | ||
"exports": { | ||
"types": "./dist/ts/index.d.ts", | ||
"import": "./dist/esm/index.js", | ||
"require": "./dist/cjs/index.js" | ||
}, | ||
"files": [ | ||
@@ -30,9 +32,5 @@ "dist/**/*", | ||
"prebuild": "yarn clean", | ||
"build": "concurrently \"yarn buildBabel\" \"yarn buildTsc\"", | ||
"build": "tsup", | ||
"build:storybook": "storybook build", | ||
"build:watch": "concurrently \"yarn buildBabel:esm -- --watch\" \"yarn buildTsc -- --watch\"", | ||
"buildBabel": "concurrently \"yarn buildBabel:cjs\" \"yarn buildBabel:esm\"", | ||
"buildBabel:cjs": "babel ./src -d ./dist/cjs --extensions \".js,.jsx,.ts,.tsx\"", | ||
"buildBabel:esm": "babel ./src -d ./dist/esm --env-name esm --extensions \".js,.jsx,.ts,.tsx\"", | ||
"buildTsc": "tsc --declaration --emitDeclarationOnly --outDir ./dist/ts", | ||
"build:watch": "yarn build -- --watch", | ||
"clean": "rimraf ./dist", | ||
@@ -42,18 +40,13 @@ "eject-ts": "zx scripts/eject-typescript.mjs", | ||
"release": "yarn build && auto shipit", | ||
"start": "concurrently \"yarn build:watch\" \"yarn storybook -- --no-manager-cache --quiet\"", | ||
"storybook": "storybook dev -p 6006", | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
"start": "concurrently \"yarn build:watch\" \"yarn storybook\"", | ||
"storybook": "storybook dev -p 6006" | ||
}, | ||
"devDependencies": { | ||
"@babel/cli": "^7.12.1", | ||
"@babel/core": "^7.12.3", | ||
"@babel/preset-env": "^7.12.1", | ||
"@babel/preset-react": "^7.12.5", | ||
"@babel/preset-typescript": "^7.13.0", | ||
"@storybook/addon-essentials": "^7.0.5", | ||
"@storybook/api": "^7.0.5", | ||
"@storybook/manager-api": "^7.0.5", | ||
"@storybook/preview-api": "^7.0.5", | ||
"@storybook/react": "^7.0.5", | ||
"@storybook/react-vite": "^7.0.5", | ||
"@storybook/addon-essentials": "^7.6.7", | ||
"@storybook/api": "^7.6.7", | ||
"@storybook/components": "^7.6.7", | ||
"@storybook/manager-api": "^7.6.7", | ||
"@storybook/preview-api": "^7.6.7", | ||
"@storybook/react": "^7.6.7", | ||
"@storybook/react-vite": "^7.6.7", | ||
"@types/react": "^18.0.37", | ||
@@ -64,3 +57,2 @@ "@types/react-dom": "^18.0.11", | ||
"auto": "^10.3.0", | ||
"babel-loader": "^8.1.0", | ||
"boxen": "^5.0.1", | ||
@@ -86,3 +78,4 @@ "concurrently": "^6.2.0", | ||
"rimraf": "^3.0.2", | ||
"storybook": "^7.0.5", | ||
"storybook": "^7.6.7", | ||
"tsup": "^8.0.1", | ||
"typescript": "^4.2.4", | ||
@@ -93,8 +86,2 @@ "vite": "^4.2.1", | ||
"peerDependencies": { | ||
"@storybook/api": "^7.0.0", | ||
"@storybook/components": "^7.0.0", | ||
"@storybook/core-events": "^7.0.0", | ||
"@storybook/manager-api": "^7.0.0", | ||
"@storybook/preview-api": "^7.0.0", | ||
"@storybook/theming": "^7.0.0", | ||
"react": "^17.0.0 || ^18.0.0", | ||
@@ -111,5 +98,17 @@ "react-dom": "^17.0.0 || ^18.0.0" | ||
}, | ||
"packageManager": "yarn@4.0.2", | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"bundler": { | ||
"exportEntries": [ | ||
"src/index.ts" | ||
], | ||
"managerEntries": [ | ||
"src/manager.ts" | ||
], | ||
"previewEntries": [ | ||
"src/preview.ts" | ||
] | ||
}, | ||
"storybook": { | ||
@@ -116,0 +115,0 @@ "displayName": "storybook-addon-root-attributes", |
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
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
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
No tests
QualityPackage does not have any tests. This is a strong signal of a poorly maintained or low quality package.
Found 1 instance in 1 package
2
37
1
32302
16
75
1