Skip to content

Commit

Permalink
Add configure and rules exports
Browse files Browse the repository at this point in the history
  • Loading branch information
1aron committed Feb 26, 2024
1 parent b88a6f8 commit 87dcfaa
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
10 changes: 10 additions & 0 deletions packages/semantic-release-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,16 @@
"require": "./dist/index.cjs",
"import": "./dist/index.mjs",
"types": "./dist/index.d.ts"
},
"./configure": {
"require": "./dist/configure.cjs",
"import": "./dist/configure.mjs",
"types": "./dist/configure.d.ts"
},
"./rules": {
"require": "./dist/rules.cjs",
"import": "./dist/rules.mjs",
"types": "./dist/rules.d.ts"
}
},
"publishConfig": {
Expand Down
3 changes: 3 additions & 0 deletions packages/semantic-release-config/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
import configure from './configure'

export { default as rules } from './rules'
export { default as configure } from './configure'

export default configure()
2 changes: 1 addition & 1 deletion release.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const configure = require('semantic-release-config-techor/configure')
const { configure } = require('semantic-release-config-techor')

module.exports = configure({
plugins: {
Expand Down

0 comments on commit 87dcfaa

Please sign in to comment.