mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-06-06 13:53:54 +02:00
chore: move package.json to plugin root
This commit is contained in:
@@ -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);
|
||||
},
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{
|
||||
"extends": "../../../tsconfig.base.json",
|
||||
"include": ["*.ts", "types/**/*"]
|
||||
"extends": "../../tsconfig.base.json",
|
||||
"include": ["guest-js/*.ts"]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user