Skip to content

Commit d3bf748

Browse files
committed
⬆️ use the new rollup terser plugin
1 parent c48c9c1 commit d3bf748

File tree

4 files changed

+54
-59
lines changed

4 files changed

+54
-59
lines changed

docs/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ A Branded Type for values parseable to number.
2222

2323
#### Defined in
2424

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

2727
## Functions
2828

@@ -58,4 +58,4 @@ return Number(value);
5858

5959
#### Defined in
6060

61-
[index.ts:24](https://github.com/VitorLuizC/typescript-library-boilerplate/blob/92797bd/src/index.ts#L24)
61+
[index.ts:24](https://github.com/VitorLuizC/typescript-library-boilerplate/blob/c48c9c1/src/index.ts#L24)

package-lock.json

Lines changed: 49 additions & 51 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
]
2525
},
2626
"devDependencies": {
27+
"@rollup/plugin-terser": "^0.4.3",
2728
"@types/eslint": "^8.44.3",
2829
"@types/jest": "^29.5.5",
2930
"@types/prettier": "^3.0.0",
@@ -35,7 +36,6 @@
3536
"jest": "^29.7.0",
3637
"prettier": "^3.0.3",
3738
"rollup": "^3.29.4",
38-
"rollup-plugin-terser": "^7.0.2",
3939
"rollup-plugin-typescript2": "^0.36.0",
4040
"ts-jest": "^29.1.1",
4141
"ts-jest-resolver": "^2.0.1",

rollup.config.mjs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
11
// @ts-check
22

3-
import { readFile } from 'node:fs/promises';
4-
5-
import { terser } from 'rollup-plugin-terser';
3+
import terser from '@rollup/plugin-terser';
64
import typescript2 from 'rollup-plugin-typescript2';
7-
8-
const packageJSON = JSON.parse(await readFile('./package.json', 'utf-8'));
5+
import packageJSON from './package.json' assert { type: 'json' };
96

107
/**
118
* Comment with library information to be appended in the generated bundles.

0 commit comments

Comments
 (0)