Skip to content

Commit

Permalink
Add tests and src to npmignore (#7824)
Browse files Browse the repository at this point in the history
Add tests and src to npmignore

Co-authored-by: Dmitriy Kuznetsov <d.o.kuznetsov@tinkoff.ru>
Co-authored-by: Norbert de Langen <ndelangen@me.com>
  • Loading branch information
2 people authored and shilman committed Oct 7, 2019
1 parent d14f2d5 commit a39f2f4
Show file tree
Hide file tree
Showing 78 changed files with 376 additions and 92 deletions.
10 changes: 0 additions & 10 deletions .npmignore

This file was deleted.

6 changes: 6 additions & 0 deletions addons/a11y/package.json
Expand Up @@ -20,6 +20,12 @@
"directory": "addons/a11y"
},
"license": "MIT",
"files": [
"dist/**/*",
"docs/**/*",
"README.md",
"register.js"
],
"main": "dist/index.js",
"types": "dist/index.d.ts",
"scripts": {
Expand Down
6 changes: 6 additions & 0 deletions addons/actions/package.json
Expand Up @@ -15,6 +15,12 @@
"directory": "addons/actions"
},
"license": "MIT",
"files": [
"dist/**/*",
"docs/**/*",
"README.md",
"register.js"
],
"main": "dist/index.js",
"types": "dist/index.d.ts",
"scripts": {
Expand Down
6 changes: 6 additions & 0 deletions addons/backgrounds/package.json
Expand Up @@ -19,6 +19,12 @@
},
"license": "MIT",
"author": "jbaxleyiii",
"files": [
"dist/**/*",
"docs/**/*",
"README.md",
"register.js"
],
"main": "dist/index.js",
"types": "dist/index.d.ts",
"scripts": {
Expand Down
14 changes: 14 additions & 0 deletions addons/centered/package.json
Expand Up @@ -17,6 +17,20 @@
},
"license": "MIT",
"author": "Muhammed Thanish <mnmtanish@gmail.com>",
"files": [
"dist/**/*",
"README.md",
"angular.js",
"angular.d.ts",
"ember.js",
"html.js",
"mithril.js",
"preact.js",
"rax.js",
"react.js",
"svelte.js",
"vue.js"
],
"main": "dist/index.js",
"types": "dist/index.d.ts",
"scripts": {
Expand Down
24 changes: 13 additions & 11 deletions addons/contexts/package.json
Expand Up @@ -3,29 +3,29 @@
"version": "5.2.1",
"description": "Storybook Addon Contexts",
"keywords": [
"storybook",
"preact",
"react",
"storybook",
"vue"
],
"author": "Leo Y. Li",
"repository": {
"type": "git",
"url": "https://github.com/storybookjs/storybook.git",
"directory": "addons/contexts"
},
"license": "MIT",
"main": "dist/register.js",
"author": "Leo Y. Li",
"files": [
"dist/**/*",
"register.js",
"preact.js",
"react.js",
"vue.js"
],
"repository": {
"type": "git",
"url": "https://github.com/storybookjs/storybook.git",
"directory": "addons/contexts"
},
"main": "dist/register.js",
"scripts": {
"prepare": "node ../../scripts/prepare.js",
"dev:check-types": "tsc --noEmit"
"dev:check-types": "tsc --noEmit",
"prepare": "node ../../scripts/prepare.js"
},
"dependencies": {
"@storybook/addons": "5.2.1",
Expand All @@ -41,8 +41,10 @@
"react": "*",
"vue": "*"
},
"devDependencies": {
"peerDependencies": {
"global": "*",
"preact": "*",
"qs": "*",
"react": "*",
"vue": "*"
},
Expand Down
6 changes: 6 additions & 0 deletions addons/cssresources/package.json
Expand Up @@ -19,6 +19,12 @@
},
"license": "MIT",
"author": "nm123github",
"files": [
"dist/**/*",
"docs/**/*",
"README.md",
"register.js"
],
"main": "dist/index.js",
"types": "dist/index.d.ts",
"scripts": {
Expand Down
12 changes: 9 additions & 3 deletions addons/design-assets/package.json
Expand Up @@ -4,11 +4,11 @@
"description": "Design asset preview for storybook",
"keywords": [
"addon",
"storybook",
"parameter",
"design",
"assets",
"design",
"files",
"parameter",
"storybook",
"viewer"
],
"homepage": "https://github.com/storybookjs/storybook#readme",
Expand All @@ -21,6 +21,12 @@
"directory": "addons/design-assets"
},
"license": "MIT",
"files": [
"dist/**/*",
"docs/**/*",
"README.md",
"register.js"
],
"main": "dist/index.js",
"types": "dist/index.d.ts",
"scripts": {
Expand Down
13 changes: 13 additions & 0 deletions addons/docs/package.json
Expand Up @@ -17,6 +17,19 @@
"directory": "addons/docs"
},
"license": "MIT",
"files": [
"dist/**/*",
"docs/**/*",
"angular/**/*",
"common/**/*",
"html/**/*",
"react/**/*",
"vue/**/*",
"README.md",
"blocks.js",
"mdx-compiler-plugin.js",
"register.js"
],
"main": "dist/public_api.js",
"types": "dist/public_api.d.ts",
"scripts": {
Expand Down
6 changes: 6 additions & 0 deletions addons/events/package.json
Expand Up @@ -18,6 +18,12 @@
"directory": "addons/events"
},
"license": "MIT",
"files": [
"dist/**/*",
"docs/**/*",
"README.md",
"register.js"
],
"main": "dist/index.js",
"types": "dist/index.d.ts",
"scripts": {
Expand Down
6 changes: 6 additions & 0 deletions addons/graphql/package.json
Expand Up @@ -16,6 +16,12 @@
"directory": "addons/graphql"
},
"license": "MIT",
"files": [
"dist/**/*",
"docs/**/*",
"README.md",
"register.js"
],
"main": "dist/index.js",
"types": "dist/index.d.ts",
"scripts": {
Expand Down
5 changes: 5 additions & 0 deletions addons/info/package.json
Expand Up @@ -16,6 +16,11 @@
"directory": "addons/info"
},
"license": "MIT",
"files": [
"dist/**/*",
"docs/**/*",
"README.md"
],
"main": "dist/index.js",
"jsnext:main": "src/index.js",
"scripts": {
Expand Down
6 changes: 6 additions & 0 deletions addons/jest/package.json
Expand Up @@ -22,6 +22,12 @@
},
"license": "MIT",
"author": "Renaud Tertrais <renaud.tertrais@gmail.com> (https://github.com/renaudtertrais)",
"files": [
"dist/**/*",
"docs/**/*",
"README.md",
"register.js"
],
"main": "dist/index.js",
"types": "dist/index.d.ts",
"scripts": {
Expand Down
1 change: 0 additions & 1 deletion addons/knobs/.npmignore

This file was deleted.

23 changes: 18 additions & 5 deletions addons/knobs/package.json
Expand Up @@ -16,6 +16,19 @@
"directory": "addons/knobs"
},
"license": "MIT",
"files": [
"dist/**/*",
"docs/**/*",
"README.md",
"angular.js",
"html.js",
"marko.js",
"mithril.js",
"polymer.js",
"react.js",
"vue.js",
"register.js"
],
"main": "dist/index.js",
"types": "dist/index.d.ts",
"scripts": {
Expand All @@ -41,15 +54,15 @@
"react-lifecycles-compat": "^3.0.4",
"react-select": "^3.0.0"
},
"devDependencies": {
"@types/escape-html": "0.0.20",
"@types/react-lifecycles-compat": "^3.0.1",
"@types/react-select": "^2.0.19"
},
"peerDependencies": {
"react": "*"
},
"publishConfig": {
"access": "public"
},
"devDependencies": {
"@types/escape-html": "0.0.20",
"@types/react-lifecycles-compat": "^3.0.1",
"@types/react-select": "^2.0.19"
}
}
7 changes: 7 additions & 0 deletions addons/links/package.json
Expand Up @@ -16,6 +16,13 @@
"directory": "addons/links"
},
"license": "MIT",
"files": [
"dist/**/*",
"docs/**/*",
"README.md",
"react.js",
"register.js"
],
"main": "dist/index.js",
"types": "dist/index.d.ts",
"scripts": {
Expand Down
7 changes: 7 additions & 0 deletions addons/notes/package.json
Expand Up @@ -17,6 +17,13 @@
"directory": "addons/notes"
},
"license": "MIT",
"files": [
"dist/**/*",
"docs/**/*",
"README.md",
"register.js",
"register-panel.js"
],
"main": "dist/public_api.js",
"types": "dist/public_api.d.ts",
"scripts": {
Expand Down
6 changes: 6 additions & 0 deletions addons/ondevice-actions/package.json
Expand Up @@ -14,6 +14,12 @@
"url": "https://github.com/storybookjs/storybook.git"
},
"license": "MIT",
"files": [
"dist/**/*",
"docs/**/*",
"README.md",
"register.js"
],
"main": "dist/index.js",
"scripts": {
"prepare": "node ../../scripts/prepare.js"
Expand Down
7 changes: 6 additions & 1 deletion addons/ondevice-backgrounds/package.json
Expand Up @@ -18,8 +18,13 @@
"directory": "addons/ondevice-backgrounds"
},
"license": "MIT",
"files": [
"dist/**/*",
"docs/**/*",
"README.md",
"register.js"
],
"main": "dist/index.js",
"jsnext:main": "src/index.js",
"scripts": {
"prepare": "node ../../scripts/prepare.js"
},
Expand Down
7 changes: 6 additions & 1 deletion addons/ondevice-knobs/package.json
Expand Up @@ -15,8 +15,13 @@
"directory": "addons/ondevice-knobs"
},
"license": "MIT",
"files": [
"dist/**/*",
"docs/**/*",
"README.md",
"register.js"
],
"main": "dist/index.js",
"jsnext:main": "src/index.js",
"scripts": {
"prepare": "node ../../scripts/prepare.js"
},
Expand Down
11 changes: 8 additions & 3 deletions addons/ondevice-notes/package.json
Expand Up @@ -5,17 +5,22 @@
"keywords": [
"addon",
"notes",
"storybook",
"react-native"
"react-native",
"storybook"
],
"repository": {
"type": "git",
"url": "https://github.com/storybookjs/storybook.git",
"directory": "addons/ondevice-notes"
},
"license": "MIT",
"files": [
"dist/**/*",
"docs/**/*",
"README.md",
"register.js"
],
"main": "dist/index.js",
"jsnext:main": "src/index.js",
"scripts": {
"prepare": "node ../../scripts/prepare.js"
},
Expand Down
6 changes: 6 additions & 0 deletions addons/options/package.json
Expand Up @@ -16,6 +16,12 @@
"directory": "addons/options"
},
"license": "MIT",
"files": [
"dist/**/*",
"docs/**/*",
"README.md",
"register.js"
],
"main": "dist/index.js",
"types": "dist/public_api.d.ts",
"scripts": {
Expand Down

0 comments on commit a39f2f4

Please sign in to comment.