mirror of
https://github.com/wagoid/commitlint-github-action.git
synced 2025-11-07 08:06:54 +00:00
BREAKING CHANGE: `commitlint.config.js` is not supported anymore, please use `.mjs` extension
23 lines
647 B
JavaScript
23 lines
647 B
JavaScript
import path from 'path'
|
|
import { nodeResolve } from '@rollup/plugin-node-resolve'
|
|
import commonjs from '@rollup/plugin-commonjs'
|
|
import { babel } from '@rollup/plugin-babel'
|
|
import pkg from './package.json'
|
|
|
|
export default {
|
|
input: 'run.mjs',
|
|
external: (depName) =>
|
|
depName.includes('node_modules') && !depName.includes('node_modules/dargs'),
|
|
output: [{ file: pkg.module, format: 'es' }],
|
|
plugins: [
|
|
babel({
|
|
babelHelpers: 'bundled',
|
|
configFile: path.resolve(__dirname, 'babel.config.json'),
|
|
exclude: ['node_modules/(?!dargs)'],
|
|
}),
|
|
nodeResolve({
|
|
preferBuiltins: true,
|
|
}),
|
|
commonjs(),
|
|
],
|
|
}
|