Skip to content

Commit

Permalink
build: copy over package.json to dist
Browse files Browse the repository at this point in the history
  • Loading branch information
thebuilder committed Jun 20, 2022
1 parent 57da6c3 commit fc4f746
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
9 changes: 7 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
"types": "./dist/index.d.ts"
}
},
"files": ["dist", "README.md", "LICENSE", "package.json"],
"author": "Daniel Schmidt",
"sideEffects": false,
"repository": {
Expand Down Expand Up @@ -57,6 +56,7 @@
"build": "run-s build:*",
"build:bundle": "microbundle --name ReactIntersectionObserver --jsx React.createElement -f cjs,umd,es,modern --no-compress",
"build:utils": "tsc -p tsconfig.test.json",
"build:copy": "node scripts/build-copy.js",
"postbuild": "size-limit",
"dev": "yarn run storybook",
"lint": "eslint . --ext js,ts,tsx",
Expand All @@ -78,7 +78,12 @@
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/npm",
[
"@semantic-release/npm",
{
"pkgRoot": "dist"
}
],
"@semantic-release/github"
]
},
Expand Down
1 change: 1 addition & 0 deletions scripts/build-copy.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ const fields = [
'exports',
'esmodule',
'exports',
'types',
'typings',
];
fields.forEach((key) => {
Expand Down

0 comments on commit fc4f746

Please sign in to comment.