mirror of
https://github.com/ivuorinen/base-configs.git
synced 2026-01-26 03:03:59 +00:00
feat!: module & commonjs in semantic-release
BREAKING CHANGE: support module, and commonjs types
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
"node": ">= 18"
|
||||
},
|
||||
"files": [
|
||||
"index.js",
|
||||
"index.cjs",
|
||||
"scripts/*"
|
||||
],
|
||||
"homepage": "https://github.com/ivuorinen/base-configs/tree/main/packages/semantic-release-config#readme",
|
||||
@@ -24,7 +24,13 @@
|
||||
"ivuorinen"
|
||||
],
|
||||
"license": "MIT",
|
||||
"main": "index.js",
|
||||
"type": "module",
|
||||
"main": "index.cjs",
|
||||
"module": "wrapper.mjs",
|
||||
"exports": {
|
||||
"import": "./wrapper.mjs",
|
||||
"require": "./index.cjs"
|
||||
},
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
@@ -33,7 +39,7 @@
|
||||
"url": "https://github.com/ivuorinen/base-configs.git"
|
||||
},
|
||||
"scripts": {
|
||||
"postinstall": "node scripts/postinstall.js"
|
||||
"postinstall": "node scripts/postinstall.cjs"
|
||||
},
|
||||
"dependencies": {
|
||||
"@ivuorinen/config-checker": "^1.1.4",
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
|
||||
const fs = require('fs')
|
||||
const path = require('path')
|
||||
// noinspection NpmUsedModulesInstalled
|
||||
const process = require('process')
|
||||
const checkConfig = require('@ivuorinen/config-checker')
|
||||
const foundConfig = checkConfig('release')
|
||||
2
packages/semantic-release-config/wrapper.mjs
Normal file
2
packages/semantic-release-config/wrapper.mjs
Normal file
@@ -0,0 +1,2 @@
|
||||
import config from './index.cjs'
|
||||
export default config
|
||||
Reference in New Issue
Block a user