New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@nebulare/bundler

Package Overview
Dependencies
Maintainers
2
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nebulare/bundler - npm Package Compare versions

Comparing version 0.1.4 to 0.1.5

7

lib/index.d.ts

@@ -5,7 +5,8 @@ export declare enum MODE {

}
export interface BundlerOptions {
input: string;
export interface BundleOptions {
fileName: string;
inputDir: string;
outputDir: string;
mode?: MODE;
}
export declare function bundleApp(opts: BundlerOptions): Promise<void>;
export declare function bundle(opts: BundleOptions): Promise<void>;

@@ -6,5 +6,6 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.bundleApp = exports.MODE = void 0;
exports.bundle = exports.MODE = void 0;
const rollup_1 = require("rollup");
const path_1 = __importDefault(require("path"));
const fs_1 = __importDefault(require("fs"));
const fs_extra_1 = __importDefault(require("fs-extra"));

@@ -40,10 +41,15 @@ const rollup_plugin_esbuild_1 = __importDefault(require("./rollup-plugin-esbuild"));

}
async function bundleApp(opts) {
const { input, outputDir, mode = MODE.DEV } = opts;
const outputFile = path_1.default.join(outputDir, 'index.js');
async function bundle(opts) {
const { fileName, inputDir, outputDir, mode = MODE.DEV } = opts;
const input = path_1.default.join(inputDir, `${fileName}.ts`);
if (!fs_1.default.existsSync(input)) {
console.error(`${input} is not exist`);
return;
}
const outputFile = path_1.default.join(outputDir, `${fileName}.js`);
const { inputOptions, outputOptions } = getRollupOptions(input, outputFile, mode);
await fs_extra_1.default.emptyDir(outputDir);
const bundle = await (0, rollup_1.rollup)(inputOptions);
await bundle.write(outputOptions);
const build = await (0, rollup_1.rollup)(inputOptions);
await build.write(outputOptions);
}
exports.bundleApp = bundleApp;
exports.bundle = bundle;
{
"name": "@nebulare/bundler",
"version": "0.1.4",
"version": "0.1.5",
"description": "Nebula UI kit bundler",

@@ -42,3 +42,3 @@ "keywords": [

},
"gitHead": "d6538cda7ee0fb8a8ce7d4a4c7ac2a36b7f6f8bc"
"gitHead": "a315b2be3c7056c86b3e8ce5052522388d044072"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc