Skip to content

Commit

Permalink
use only one rollup configuration file (#1963)
Browse files Browse the repository at this point in the history
  • Loading branch information
jdeniau committed Aug 28, 2023
1 parent e830356 commit bf321fc
Show file tree
Hide file tree
Showing 5 changed files with 265 additions and 102 deletions.
255 changes: 222 additions & 33 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 3 additions & 5 deletions package.json
Expand Up @@ -67,8 +67,7 @@
"build": "run-s build:*",
"build:clean": "rimraf dist",
"build:dist": "rollup -c ./resources/rollup-config.js",
"build:esm": "rollup -c ./resources/rollup-config-es.js",
"build:copy": "cpy ./type-definitions/immutable.* dist",
"build:types": "cpy ./type-definitions/immutable.* dist",
"build:prepare": "./resources/prepare-dist.sh",
"build:stats": "node ./resources/dist-stats.mjs",
"unit-test": "jest",
Expand All @@ -85,6 +84,7 @@
"arrowParens": "avoid"
},
"devDependencies": {
"@rollup/plugin-terser": "^0.4.3",
"@size-limit/esbuild-why": "^8.2.6",
"@size-limit/preset-small-lib": "^8.2.6",
"@types/jest": "27.0.1",
Expand Down Expand Up @@ -124,9 +124,7 @@
"transducers-js": "0.4.174",
"tslint": "6.1.3",
"tslint-config-prettier": "1.18.0",
"typescript": "^4.9",
"uglify-js": "3.11.1",
"uglify-save-license": "0.4.1"
"typescript": "^4.9"
},
"size-limit": [
{
Expand Down
4 changes: 3 additions & 1 deletion resources/copyright.js
Expand Up @@ -3,4 +3,6 @@ import fs from 'fs';
const copyright = fs.readFileSync('./LICENSE', 'utf-8');
const lines = copyright.trim().split('\n');

export default `/**\n${lines.map(line => ` * ${line}`).join('\n')}\n */`;
export default `/**\n * @license\n${lines
.map(line => ` * ${line}`)
.join('\n')}\n */`;

0 comments on commit bf321fc

Please sign in to comment.