Skip to content

Commit

Permalink
⬆️ use the new rollup terser plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
VitorLuizC committed Oct 4, 2023
1 parent c48c9c1 commit d3bf748
Show file tree
Hide file tree
Showing 4 changed files with 54 additions and 59 deletions.
4 changes: 2 additions & 2 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ A Branded Type for values parseable to number.

#### Defined in

[index.ts:4](https://github.com/VitorLuizC/typescript-library-boilerplate/blob/92797bd/src/index.ts#L4)
[index.ts:4](https://github.com/VitorLuizC/typescript-library-boilerplate/blob/c48c9c1/src/index.ts#L4)

## Functions

Expand Down Expand Up @@ -58,4 +58,4 @@ return Number(value);

#### Defined in

[index.ts:24](https://github.com/VitorLuizC/typescript-library-boilerplate/blob/92797bd/src/index.ts#L24)
[index.ts:24](https://github.com/VitorLuizC/typescript-library-boilerplate/blob/c48c9c1/src/index.ts#L24)
100 changes: 49 additions & 51 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
]
},
"devDependencies": {
"@rollup/plugin-terser": "^0.4.3",
"@types/eslint": "^8.44.3",
"@types/jest": "^29.5.5",
"@types/prettier": "^3.0.0",
Expand All @@ -35,7 +36,6 @@
"jest": "^29.7.0",
"prettier": "^3.0.3",
"rollup": "^3.29.4",
"rollup-plugin-terser": "^7.0.2",
"rollup-plugin-typescript2": "^0.36.0",
"ts-jest": "^29.1.1",
"ts-jest-resolver": "^2.0.1",
Expand Down
7 changes: 2 additions & 5 deletions rollup.config.mjs
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
// @ts-check

import { readFile } from 'node:fs/promises';

import { terser } from 'rollup-plugin-terser';
import terser from '@rollup/plugin-terser';
import typescript2 from 'rollup-plugin-typescript2';

const packageJSON = JSON.parse(await readFile('./package.json', 'utf-8'));
import packageJSON from './package.json' assert { type: 'json' };

/**
* Comment with library information to be appended in the generated bundles.
Expand Down

0 comments on commit d3bf748

Please sign in to comment.