Skip to content

Commit dc00cf5

Browse files
committed
Revert "chore: migrate rollup config from ts to js ([#80](#80))"
This reverts commit 3cea523.
1 parent 22be5d8 commit dc00cf5

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"lint:fix": "biome check --write",
1515
"clean": "rimraf dist",
1616
"prebuild": "pnpm clean && pnpm lint",
17-
"build": "rollup -c"
17+
"build": "rollup -c --configPlugin typescript"
1818
},
1919
"nano-staged": {
2020
"*.{ts,json}": "biome check --write --no-errors-on-unmatched"

rollup.config.js renamed to rollup.config.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
import terser from '@rollup/plugin-terser'
22
import typescript from '@rollup/plugin-typescript'
3+
import type { RollupOptions } from 'rollup'
34
import { dts } from 'rollup-plugin-dts'
45
import nodeExternals from 'rollup-plugin-node-externals'
56
import tsConfigPaths from 'rollup-plugin-tsconfig-paths'
67
import pkg from './package.json' with { type: 'json' }
78

89
const { main, types } = pkg
9-
const bundle = options => ({
10+
11+
const bundle = (options: RollupOptions): RollupOptions => ({
1012
...options,
1113
input: 'src/index.ts'
1214
})

0 commit comments

Comments
 (0)