Skip to content

Commit a5342c6

Browse files
committed
feat(tools): replace npmignore with package.json#files within react-library generator
1 parent ce297bc commit a5342c6

File tree

3 files changed

+1
-40
lines changed

3 files changed

+1
-40
lines changed

tools/workspace-plugin/src/generators/react-library/files/.npmignore__tmpl__

Lines changed: 0 additions & 38 deletions
This file was deleted.

tools/workspace-plugin/src/generators/react-library/files/package.json__tmpl__

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"module": "lib/index.js",
88
"typings": "./dist/index.d.ts",
99
"sideEffects": false,
10+
"files": ["lib", "lib-commonjs", "dist/*.d.ts"],
1011
"repository": {
1112
"type": "git",
1213
"url": "https://github.com/microsoft/fluentui"

tools/workspace-plugin/src/generators/react-library/index.spec.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ describe('react-library generator', () => {
5353
"project.json",
5454
".babelrc.json",
5555
".eslintrc.json",
56-
".npmignore",
5756
".storybook",
5857
".swcrc",
5958
"LICENSE",
@@ -189,7 +188,6 @@ describe('react-library generator', () => {
189188
"project.json",
190189
".babelrc.json",
191190
".eslintrc.json",
192-
".npmignore",
193191
".storybook",
194192
".swcrc",
195193
"LICENSE",

0 commit comments

Comments
 (0)