mirror of
https://github.com/actions/typescript-action.git
synced 2025-04-05 06:49:46 +00:00
Convert to ESM
This commit is contained in:
18
rollup.config.ts
Normal file
18
rollup.config.ts
Normal file
@ -0,0 +1,18 @@
|
||||
// See: https://rollupjs.org/introduction/
|
||||
|
||||
import commonjs from '@rollup/plugin-commonjs'
|
||||
import nodeResolve from '@rollup/plugin-node-resolve'
|
||||
import typescript from '@rollup/plugin-typescript'
|
||||
|
||||
const config = {
|
||||
input: 'src/index.ts',
|
||||
output: {
|
||||
esModule: true,
|
||||
file: 'dist/index.js',
|
||||
format: 'es',
|
||||
sourcemap: true
|
||||
},
|
||||
plugins: [typescript(), nodeResolve(), commonjs()]
|
||||
}
|
||||
|
||||
export default config
|
Reference in New Issue
Block a user