-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
45 changed files
with
1,667 additions
and
1,394 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,29 @@ | ||
|
||
import eslint from '@rollup/plugin-eslint'; | ||
import pkg from './package.json' assert { type: 'json' } | ||
import eslint from "@rollup/plugin-eslint"; | ||
import { readFile } from "node:fs/promises"; | ||
const pkg = JSON.parse( | ||
await readFile(new URL("./package.json", import.meta.url), "utf8"), | ||
); | ||
|
||
export default { | ||
input: 'lib/index.js', | ||
input: "lib/index.js", | ||
output: [ | ||
{ | ||
file: `dist/${pkg.name}.umd.js`, | ||
name: 'mixme', | ||
format: 'umd' | ||
name: "mixme", | ||
format: "umd", | ||
}, | ||
{ | ||
file: `dist/${pkg.name}.cjs.cjs`, | ||
format: 'cjs' | ||
format: "cjs", | ||
}, | ||
{ | ||
file: `dist/${pkg.name}.esm.js`, | ||
format: 'esm' | ||
} | ||
format: "esm", | ||
}, | ||
], | ||
plugins: [ | ||
eslint({ | ||
fix: true, | ||
}), | ||
], | ||
plugins: [eslint({ | ||
fix: true, | ||
})] | ||
}; |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.