mirror of
https://github.com/ivuorinen/base-configs.git
synced 2026-01-26 03:03:59 +00:00
feat!: module & commonjs in prettier
BREAKING CHANGE: support module, and commonjs types
This commit is contained in:
@@ -13,8 +13,14 @@
|
||||
"engines": {
|
||||
"node": ">= 18"
|
||||
},
|
||||
"main": "index.cjs",
|
||||
"module": "wrapper.mjs",
|
||||
"exports": {
|
||||
"import": "./wrapper.mjs",
|
||||
"require": "./index.cjs"
|
||||
},
|
||||
"files": [
|
||||
"index.js",
|
||||
"index.cjs",
|
||||
"scripts/*"
|
||||
],
|
||||
"homepage": "https://github.com/ivuorinen/base-configs/tree/main/packages/prettier-config#readme",
|
||||
@@ -25,7 +31,6 @@
|
||||
"prettier"
|
||||
],
|
||||
"license": "MIT",
|
||||
"main": "index.js",
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
|
||||
2
packages/prettier-config/wrapper.mjs
Normal file
2
packages/prettier-config/wrapper.mjs
Normal file
@@ -0,0 +1,2 @@
|
||||
import config from './index.cjs'
|
||||
export default config
|
||||
Reference in New Issue
Block a user