Skip to content

Commit

Permalink
minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
udamir committed Oct 18, 2023
1 parent 3457d73 commit f25d325
Show file tree
Hide file tree
Showing 3 changed files with 71 additions and 504 deletions.
6 changes: 2 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
{
"name": "allof-merge",
"version": "0.5.1",
"version": "0.5.2",
"description": "Simplify your JsonSchema by combining allOf safely.",
"module": "dist/index.mjs",
"main": "dist/index.cjs",
"browser": "dist/index.iife.js",
"typings": "dist/index.d.ts",
"files": [
"dist",
"browser"
"dist"
],
"exports": {
".": {
Expand All @@ -20,7 +19,6 @@
"prebuild": "rimraf ./dist",
"build": "rollup -c",
"test": "jest --verbose",
"prepublish": "rm -r dist || true && yarn build && yarn build:web",
"test:coverage": "jest --verbose --coverage",
"benchmark": "yarn build && node benchmark"
},
Expand Down
15 changes: 7 additions & 8 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,11 @@ import typescript from '@rollup/plugin-typescript';

const inputPath = './src'

const banner = `/*!
const preamble = `/*!
* allof-merge v${pkg.version}
*
* Copyright (C) 2012-${new Date().getFullYear()} ${pkg.author}.
*
* Copyright (C) 2012-${new Date().getFullYear()} ${pkg.author}
* Date: ${new Date().toUTCString()}
*/
`;
*/`;

const extensions = ['.ts', '.js'];

Expand All @@ -38,7 +35,10 @@ const jsPlugins = [
include: [`${inputPath}/**/*`],
extensions,
}),
terser()
terser({ format: {
preamble,
comments: false
} })
];

function makeConfig(file, format) {
Expand All @@ -47,7 +47,6 @@ function makeConfig(file, format) {
output: {
file,
format,
banner,
name: 'AllofMerge',
sourcemap: true,
},
Expand Down
Loading

0 comments on commit f25d325

Please sign in to comment.