@forsakringskassan/commitlint-config 1.2.1 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forsakringskassan/commitlint-config",
3
- "version": "1.2.1",
3
+ "version": "1.3.0",
4
4
  "description": "FK commitlint shareable config",
5
5
  "keywords": [
6
6
  "commitlint"
@@ -13,6 +13,7 @@
13
13
  },
14
14
  "license": "MIT",
15
15
  "author": "Försäkringskassan",
16
+ "type": "module",
16
17
  "exports": {
17
18
  ".": "./dist/config/default.js",
18
19
  "./default": "./dist/config/default.js",
@@ -20,7 +21,7 @@
20
21
  },
21
22
  "main": "dist/config/default.js",
22
23
  "bin": {
23
- "commitlint": "bin/cli.js",
24
+ "commitlint": "bin/commitlint.js",
24
25
  "commitlint-config": "bin/install.js"
25
26
  },
26
27
  "files": [
@@ -30,15 +31,8 @@
30
31
  ],
31
32
  "scripts": {
32
33
  "prebuild": "rimraf dist",
33
- "build": "run-s build:*",
34
- "build:cli": "esbuild --bundle --platform=node --target=node16.0 --external:ts-node --outdir=dist/cli src/commitlint.js",
35
- "build:config": "esbuild --bundle --platform=node --target=node16.0 --external:@forsakringskassan/commitlint-config --outdir=dist/config src/config/default.js src/config/no-jira.js",
36
- "build:install": "esbuild --bundle --platform=node --target=node16.0 --outdir=dist src/install.js",
37
- "build:format": "esbuild --bundle --platform=node --target=node16.0 --outdir=dist src/format.js",
38
- "build:parser": "esbuild --bundle --platform=node --target=node16.0 --outdir=dist src/parser.js",
39
- "postbuild": "run-s postbuild:*",
40
- "postbuild:cli": "cp -R node_modules/conventional-changelog-angular/templates/ dist/cli",
41
- "postbuild:config": "cp -R node_modules/conventional-changelog-conventionalcommits/templates/ dist/config",
34
+ "build": "tsc && node build.js ",
35
+ "postbuild": "cp -R node_modules/conventional-changelog-conventionalcommits/templates/ node_modules/@commitlint/config-validator/lib/commitlint.schema.json dist/",
42
36
  "prepack": "run-s pkg:mangle",
43
37
  "postpack": "run-s pkg:restore",
44
38
  "prepublishOnly": "run-s pkg:mangle",
@@ -52,13 +46,13 @@
52
46
  "prettier:check": "prettier . --check",
53
47
  "prettier:write": "prettier . --write",
54
48
  "pretest": "run-s eslint prettier:check",
55
- "test": "jest",
49
+ "test": "node --experimental-vm-modules node_modules/jest/bin/jest.js",
56
50
  "postinstall": "node bin/install.js"
57
51
  },
58
52
  "peerDependencies": {
59
53
  "ts-node": "^10"
60
54
  },
61
55
  "engines": {
62
- "node": ">= 16"
56
+ "node": ">= 18"
63
57
  }
64
58
  }
package/bin/cli.js DELETED
@@ -1,2 +0,0 @@
1
- #!/usr/bin/env node
2
- require("../dist/cli/commitlint");