Skip to content

Commit 510a824

Browse files
author
Michal Ozogán
committedDec 16, 2023
Changed: Change to cjs file sufix
1 parent f8cb520 commit 510a824

7 files changed

+3
-3
lines changed
 

‎.eslintrc.js ‎.eslintrc.cjs

File renamed without changes.

‎.huskyrc.js ‎.huskyrc.cjs

File renamed without changes.

‎package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
},
1717
"license": "Apache-2.0",
1818
"author": "Michal Ozogán <michal@ozogan.eu>",
19-
"main": "src/index.js",
19+
"main": "src/index.cjs",
2020
"scripts": {
2121
"lint": "eslint ./ --ext .js --ext .json",
2222
"lint:fix": "npm run lint -- --fix",
File renamed without changes.

‎src/index.js ‎src/index.cjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const types = require('./types');
1+
const types = require('./types.cjs');
22

33
module.exports = {
44
rules: {

‎src/types.js ‎src/types.cjs

File renamed without changes.

‎tests/config.test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const lint = require('@commitlint/lint').default;
2-
const config = require('../src');
2+
const config = require('../src/index.cjs');
33

44
function validateCommit(commit) {
55
return lint(commit, config.rules, {});

0 commit comments

Comments
 (0)
Please sign in to comment.