chore: move package.json to plugin root

This commit is contained in:
Jonas Kruckenberg
2023-01-05 17:06:00 +01:00
parent 49a57fc9e2
commit 4cced94332
54 changed files with 175 additions and 165 deletions
+3 -3
View File
@@ -10,10 +10,10 @@ import resolve from "@rollup/plugin-node-resolve";
* @param {string[]} external Imported package.json
* @returns {import('rollup').RollupOptions}
*/
export function createConfig({ pkg, external = [] }) {
export function createConfig({ input = "index.ts", pkg, external = [] }) {
return [
{
input: "index.ts",
input,
external: Object.keys(pkg.dependencies || {})
.concat(Object.keys(pkg.peerDependencies || {}))
.concat(builtinModules)
@@ -30,7 +30,7 @@ export function createConfig({ pkg, external = [] }) {
plugins: [typescript({ sourceMap: true })],
},
{
input: "index.ts",
input,
onwarn: (warning) => {
throw Object.assign(new Error(), warning);
},
+2 -2
View File
@@ -1,4 +1,4 @@
{
"extends": "../../../tsconfig.base.json",
"include": ["*.ts", "types/**/*"]
"extends": "../../tsconfig.base.json",
"include": ["guest-js/*.ts"]
}