Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

create-bento

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

create-bento - npm Package Compare versions

Comparing version 2.2.2 to 3.0.0

2

package.json
{
"name": "create-bento",
"version": "2.2.2",
"version": "3.0.0",
"description": "Bootstrap your react libraries with typescript and storybook",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -16,5 +16,4 @@ {

"build-esm": "rimraf esm && tsc",
"build-cjs": "rimraf cjs && tsc --module commonjs --outDir cjs",
"build-umd": "rimraf umd && rollup -c",
"build": "yarn run build-esm && yarn run build-cjs && yarn run build-umd",
"build-other": "rimraf umd && rimraf cjs && rollup -c",
"build": "yarn run build-esm && yarn run build-other",
"prepublishOnly": "{{manager}} run build"

@@ -21,0 +20,0 @@ },

import resolve from "rollup-plugin-node-resolve";
import filesize from "rollup-plugin-filesize";
import { uglify } from "rollup-plugin-uglify";
import pkg from "./package.json";

@@ -8,41 +7,35 @@ import commonjs from "rollup-plugin-commonjs";

import json from "rollup-plugin-json";
import typescript from "rollup-plugin-typescript2";
const commonjsOptions = {
ignoreGlobal: true,
include: /node_modules/
};
const input = "src/index.ts";
const input = pkg.main;
const plugins = [
resolve(),
typescript({
typescript: require("typescript")
}),
commonjs(commonjsOptions),
json(),
cleanup(),
uglify(),
filesize()
];
const globals = {
react: "React",
"react-doc": "ReactDOM"
};
const externals = [
...Object.keys(pkg.dependencies || {}),
...Object.keys(pkg.peerDependencies || {})
];
const capitalize = s => {
if (typeof s !== "string") return "";
return s.charAt(0).toUpperCase() + s.slice(1);
};
export default [
{
input,
output: {
file: "umd/{{name}}.js",
format: "umd",
name: capitalize("{{name}}"),
globals
},
external: Object.keys(globals),
output: [
{
file: pkg.main,
format: "cjs",
sourcemap: true
}
],
external: externals,
plugins
}
];

Sorry, the diff of this file is not supported yet

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