Skip to content

Commit

Permalink
chore: rollup 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
brgndyy committed Sep 4, 2024
2 parents 6c4b723 + 9947797 commit 66ba936
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 26 deletions.
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -130,5 +130,4 @@ dist
.pnp.*

node_modules/
packages/*/node_modules/
packages/*/dist/
packages/*/node_modules/
1 change: 0 additions & 1 deletion .nvmrc

This file was deleted.

1 change: 0 additions & 1 deletion packages/react-metronome/.gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
node_modules
dist
.rollup.cache
.DS_Store
5 changes: 3 additions & 2 deletions packages/react-metronome/package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
{
"name": "brgndy-react-metronome",
"version": "1.1.3",
"version": "1.1.4",
"description": "metronome library component for react",
"main": "dist/cjs/index.js",
"types": "dist/index.d.ts",
"type": "module",
"files": [
"dist"
],
"types": "dist/index.d.ts",
"scripts": {
"dev": "vite",
"rollup": "rollup -c --bundleConfigAsCjs",
Expand Down
6 changes: 3 additions & 3 deletions packages/react-metronome/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ export default [
],
plugins: [
typescript(),

nodeResolve(),
commonjs(),

Expand All @@ -32,11 +31,12 @@ export default [
limit: 100000,
}),
],
external: ['react', 'react-dom'],
},
{
input: 'dist/lib/index.d.ts',
input: 'dist/index.d.ts',
output: [{ file: 'dist/index.d.ts', format: 'esm' }],
plugins: [dts.default()],
external: ['react', 'react-dom'],
external: [/\.css$/],
},
];
33 changes: 16 additions & 17 deletions packages/react-wave-form/rollup.config.js
Original file line number Diff line number Diff line change
@@ -1,21 +1,20 @@
import nodeResolve from "@rollup/plugin-node-resolve";
import commonjs from "@rollup/plugin-commonjs";
import typescript from "@rollup/plugin-typescript";
import url from "@rollup/plugin-url";
import dts from "rollup-plugin-dts";
import terser from "@rollup/plugin-terser";
import peerDepsExternal from "rollup-plugin-peer-deps-external";
import css from "rollup-plugin-import-css";

const packageJson = require("./package.json");
import nodeResolve from '@rollup/plugin-node-resolve';
import commonjs from '@rollup/plugin-commonjs';
import typescript from '@rollup/plugin-typescript';
import url from '@rollup/plugin-url';
import dts from 'rollup-plugin-dts';
import terser from '@rollup/plugin-terser';
import peerDepsExternal from 'rollup-plugin-peer-deps-external';
import css from 'rollup-plugin-import-css';
import packageJson from './package.json' assert { type: 'json' };

export default [
{
input: "src/index.ts",
input: 'src/index.ts',
output: [
{
file: packageJson.main,
format: "esm",
format: 'esm',
sourcemap: true,
},
],
Expand All @@ -28,16 +27,16 @@ export default [
terser(),
peerDepsExternal(),
url({
fileName: "[name][extname]",
include: ["**/*.wav"],
fileName: '[name][extname]',
include: ['**/*.wav'],
limit: 100000,
}),
],
external: ["react", "react-dom"],
external: ['react', 'react-dom'],
},
{
input: "dist/cjs/types/src/index.d.ts",
output: [{ file: "dist/index.d.ts", format: "esm" }],
input: 'dist/cjs/types/src/index.d.ts',
output: [{ file: 'dist/index.d.ts', format: 'esm' }],
plugins: [dts.default()],
external: [/\.css$/],
},
Expand Down

0 comments on commit 66ba936

Please sign in to comment.