Skip to content

Commit

Permalink
Migrate implementation to ESM
Browse files Browse the repository at this point in the history
  • Loading branch information
webpro committed Aug 11, 2021
1 parent 7a8db8d commit 93c7255
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
18 changes: 9 additions & 9 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
const { EOL } = require('os');
const fs = require('fs');
const { Plugin } = require('release-it');
const conventionalRecommendedBump = require('conventional-recommended-bump');
const conventionalChangelog = require('conventional-changelog');
const semver = require('semver');
const concat = require('concat-stream');
const prependFile = require('prepend-file');
import { EOL } from 'os';
import fs from 'fs';
import { Plugin } from 'release-it';
import conventionalRecommendedBump from 'conventional-recommended-bump';
import conventionalChangelog from 'conventional-changelog';
import semver from 'semver';
import concat from 'concat-stream';
import prependFile from 'prepend-file';

class ConventionalChangelog extends Plugin {
static disablePlugin(options) {
Expand Down Expand Up @@ -138,4 +138,4 @@ class ConventionalChangelog extends Plugin {
}
}

module.exports = ConventionalChangelog;
export default ConventionalChangelog;
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"name": "@release-it/conventional-changelog",
"version": "3.1.0",
"description": "Conventional changelog plugin for release-it",
"main": "index.js",
"type": "module",
"exports": "./index.js",
"scripts": {
"test": "bron test.js",
"release": "release-it"
Expand Down

0 comments on commit 93c7255

Please sign in to comment.