Skip to content

Commit

Permalink
fix: flatten dist folder
Browse files Browse the repository at this point in the history
  • Loading branch information
nass600 committed Jan 12, 2023
1 parent 50f4402 commit a877ad7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
"exports": {
".": {
"types": "./dist/plex-sdk.d.ts",
"require": "./dist/plex-sdk.js",
"import": "./dist/esm/plex-sdk.js"
"require": "./dist/plex-sdk.cjs",
"import": "./dist/plex-sdk.js"
}
},
"main": "dist/plex-sdk.js",
"module": "dist/esm/plex.js",
"main": "dist/plex-sdk.cjs",
"module": "dist/plex.js",
"types": "dist/plex-sdk.d.ts",
"scripts": {
"build": "rollup -c --configPlugin typescript --bundleConfigAsCjs",
Expand Down
4 changes: 2 additions & 2 deletions rollup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export default async () => {
...buildConfig({
es5: false,
output: {
file: `${ouputDir}/esm/${pkg.name}.js`,
file: `${ouputDir}/${pkg.name}.js`,
format: "esm",
generatedCode: {
constBinding: true
Expand All @@ -75,7 +75,7 @@ export default async () => {
...buildConfig({
es5: false,
output: {
file: `${ouputDir}/${pkg.name}.js`,
file: `${ouputDir}/${pkg.name}.cjs`,
format: "cjs",
}
}),
Expand Down

0 comments on commit a877ad7

Please # to comment.