Skip to content

Commit

Permalink
fix: Fix npm config
Browse files Browse the repository at this point in the history
  • Loading branch information
neet committed Jun 19, 2022
1 parent 24b1830 commit b189848
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions fetch/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "masto/fetch",
"private": true,
"main": "../dist/fetch.js",
"module": "../dist/fetch.mjs",
"types": "../dist/index.d.ts"
}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@
"files": [
"README.md",
"dist",
"fetch",
"!**/__tests__",
"!**/__mocks__"
],
Expand Down
8 changes: 8 additions & 0 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,14 @@ export default [
},
plugins: [commonjs(), json(), typescript(), autoExternal()],
},
{
input: './src/entrypoints/fetch.ts',
output: {
file: './dist/fetch.js',
format: 'cjs',
},
plugins: [json(), typescript(), autoExternal()],
},
{
input: './src/entrypoints/fetch.ts',
output: {
Expand Down

0 comments on commit b189848

Please sign in to comment.