@frozzare/pkg
Advanced tools
Comparing version 1.0.1 to 1.0.2
import { BuildOptions as ESBuildOptions } from 'esbuild'; | ||
export type BuildOptions = Omit<ESBuildOptions, 'bundle' | 'entryPoints'>; | ||
export declare const build: (entryPoint: string, config?: BuildOptions) => Promise<string | void>; | ||
export declare const build: (entryPoint: string, options?: BuildOptions) => Promise<string | void>; |
@@ -10,3 +10,7 @@ "use strict"; | ||
const esbuild_1 = require("esbuild"); | ||
const build = async (entryPoint, config = {}) => { | ||
const defaultOptions = { | ||
write: true, | ||
}; | ||
const build = async (entryPoint, options = {}) => { | ||
const config = { ...defaultOptions, ...options }; | ||
const out = await (0, esbuild_1.build)({ | ||
@@ -13,0 +17,0 @@ ...config, |
{ | ||
"name": "@frozzare/pkg", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3528
41