prebundle 1.0.2 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,2 +1,2 @@
1
1
  import type { ParsedTask } from './types.js';
2
- export declare function prebundle(task: ParsedTask, commonExternals: Record<string, string>): Promise<void>;
2
+ export declare function prebundle(task: ParsedTask, commonExternals?: Record<string, string>): Promise<void>;
package/dist/prebundle.js CHANGED
@@ -108,7 +108,7 @@ function renameDistFolder(task) {
108
108
  fs.writeJSONSync(pkgPath, pkgJson);
109
109
  }
110
110
  const pkgName = process.argv[2];
111
- export async function prebundle(task, commonExternals) {
111
+ export async function prebundle(task, commonExternals = {}) {
112
112
  if (pkgName && task.depName !== pkgName) {
113
113
  return;
114
114
  }
package/dist/types.d.ts CHANGED
@@ -23,7 +23,7 @@ export type Config = {
23
23
  * Configure externals for all packages,
24
24
  * will be merged with dependencies[i].externals.
25
25
  */
26
- externals: Record<string, string>;
26
+ externals?: Record<string, string>;
27
27
  dependencies: Array<string | DependencyConfig>;
28
28
  };
29
29
  export type ParsedTask = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "prebundle",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "main": "./dist/index.js",
5
5
  "type": "module",
6
6
  "repository": {