Skip to content

Commit

Permalink
Fixed build script;
Browse files Browse the repository at this point in the history
  • Loading branch information
DigitalBrainJS committed Sep 9, 2020
1 parent 46743cd commit 47f2b17
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions rollup.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import resolve from '@rollup/plugin-node-resolve';
import commonjs from '@rollup/plugin-commonjs';
import { terser } from "rollup-plugin-terser";
const PACKAGE_NAME= require('./package.json').name;
const outputFileName= 'c-promise';
const name= "CPromise";

const mode= process.env.NODE_ENV;
Expand All @@ -11,7 +11,7 @@ const config = mode === 'development' ? [
{
input,
output: {
file: `dist/${PACKAGE_NAME}.js`,
file: `dist/${outputFileName}.js`,
format: 'cjs',
name,
exports: "auto"
Expand All @@ -26,7 +26,7 @@ const config = mode === 'development' ? [
{
input,
output: {
file: `dist/${PACKAGE_NAME}.cjs.js`,
file: `dist/${outputFileName}.cjs.js`,
format: 'cjs',
name,
exports: "auto"
Expand All @@ -39,7 +39,7 @@ const config = mode === 'development' ? [
{
input,
output: {
file: `dist/${PACKAGE_NAME}.umd.js`,
file: `dist/${outputFileName}.umd.js`,
format: 'umd',
name,
exports: "auto"
Expand All @@ -52,7 +52,7 @@ const config = mode === 'development' ? [
{
input,
output: {
file: `dist/${PACKAGE_NAME}.umd.min.js`,
file: `dist/${outputFileName}.umd.min.js`,
format: 'umd',
name,
exports: "auto"
Expand All @@ -66,7 +66,7 @@ const config = mode === 'development' ? [
{
input,
output: {
file: `dist/${PACKAGE_NAME}.mjs`,
file: `dist/${outputFileName}.mjs`,
format: 'esm',
preferConst: true,
exports: "named"
Expand All @@ -79,7 +79,7 @@ const config = mode === 'development' ? [
{
input: './dev/dev.js',
output: {
file: `dist/dev/${PACKAGE_NAME}.umd.js`,
file: `dist/dev/${outputFileName}.umd.js`,
format: 'umd',
name,
exports: "auto"
Expand Down

0 comments on commit 47f2b17

Please sign in to comment.