Skip to content

Commit 4b1cff7

Browse files
author
tal-rofe
committedApr 15, 2023
fix: 🐞 set require in exports package json
set require in exports package json
1 parent cdf719b commit 4b1cff7

File tree

3 files changed

+28
-43
lines changed

3 files changed

+28
-43
lines changed
 

‎README.md

+3-12
Original file line numberDiff line numberDiff line change
@@ -84,19 +84,10 @@ Configuration can be set in environment variables or in the following files (the
8484
8585
- a `package.json` property: `"czvinyl": {...}` or in `~/package.json`, for example
8686
- a `.czvinylrc` file in JSON or YAML format
87-
- a `.czvinylrc.json`, `.czvinylrc.yaml`, `.czvinylrc.yml`, `.czvinylrc.js`, `.czvinylrc.ts`, or `.czvinylrc.cjs` file
88-
- a `czvinyl.config.js`, `czvinyl.config.ts`, or `czvinyl.config.cjs` CommonJS module exporting an object
87+
- a `.czvinylrc.json`, `.czvinylrc.yaml`, `.czvinylrc.yml`, `.czvinylrc.js`, or `.czvinylrc.cjs` file
88+
- a `czvinyl.config.js`, or `czvinyl.config.cjs` CommonJS module exporting an object
8989
90-
If you set a TypeScript configuration file, you can use the configuration interface:
91-
```ts
92-
import { Config } from 'cz-vinyl';
93-
94-
const czvinyConfig: Config = {
95-
...
96-
}
97-
98-
export default czvinylConfig;
99-
```
90+
Currently, a TypeScript configuration file is not supported: https://github.com/Codex-/cosmiconfig-typescript-loader/issues/60
10091
10192
The default commit types, descriptions and emoji that are used are:
10293

‎package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@
2828
"exports": {
2929
".": {
3030
"import": {
31-
"types": "./dist/config.d.ts",
32-
"require": "./dist/index.cjs"
33-
}
31+
"types": "./dist/config.d.ts"
32+
},
33+
"require": "./dist/index.cjs"
3434
}
3535
},
3636
"files": [
@@ -82,7 +82,7 @@
8282
"@typescript-eslint/parser": "5.58.0",
8383
"chalk": "5.2.0",
8484
"commitizen": "4.3.0",
85-
"cz-vinyl": "2.0.0",
85+
"cz-vinyl": "2.0.1",
8686
"depcheck": "1.4.3",
8787
"eslint": "8.38.0",
8888
"eslint-config-prettier": "8.8.0",

‎pnpm-lock.yaml

+21-27
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)
Please sign in to comment.