mirror of
https://github.com/ivuorinen/base-configs.git
synced 2026-01-26 11:14:00 +00:00
feat!: module & commonjs in prettier
BREAKING CHANGE: support module, and commonjs types
This commit is contained in:
@@ -13,8 +13,14 @@
|
|||||||
"engines": {
|
"engines": {
|
||||||
"node": ">= 18"
|
"node": ">= 18"
|
||||||
},
|
},
|
||||||
|
"main": "index.cjs",
|
||||||
|
"module": "wrapper.mjs",
|
||||||
|
"exports": {
|
||||||
|
"import": "./wrapper.mjs",
|
||||||
|
"require": "./index.cjs"
|
||||||
|
},
|
||||||
"files": [
|
"files": [
|
||||||
"index.js",
|
"index.cjs",
|
||||||
"scripts/*"
|
"scripts/*"
|
||||||
],
|
],
|
||||||
"homepage": "https://github.com/ivuorinen/base-configs/tree/main/packages/prettier-config#readme",
|
"homepage": "https://github.com/ivuorinen/base-configs/tree/main/packages/prettier-config#readme",
|
||||||
@@ -25,7 +31,6 @@
|
|||||||
"prettier"
|
"prettier"
|
||||||
],
|
],
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"main": "index.js",
|
|
||||||
"publishConfig": {
|
"publishConfig": {
|
||||||
"access": "public"
|
"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