@frsource/release-it-config 1.3.0 → 1.5.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": "@frsource/release-it-config",
3
- "version": "1.3.0",
3
+ "version": "1.5.0",
4
4
  "main": "index.cjs",
5
5
  "types": "index.d.cts",
6
6
  "type": "module",
@@ -11,8 +11,8 @@
11
11
  "globals": "^15.0.0",
12
12
  "release-it": "^17.2.0",
13
13
  "typescript": "^5.4.5",
14
- "@frsource/eslint-config": "1.2.0",
15
- "@frsource/prettier-config": "1.2.0"
14
+ "@frsource/eslint-config": "1.3.0",
15
+ "@frsource/prettier-config": "1.3.0"
16
16
  },
17
17
  "peerDependencies": {
18
18
  "release-it": ">= 17"
@@ -31,7 +31,7 @@
31
31
  "publishConfig": {
32
32
  "access": "public"
33
33
  },
34
- "packageManager": "pnpm@8.14.1",
34
+ "packageManager": "pnpm@8.15.7",
35
35
  "keywords": [
36
36
  "release-it",
37
37
  "release-it config"
@@ -18,15 +18,13 @@ class VersionFilePlugin extends Plugin {
18
18
  super(...args);
19
19
  this.setContext({ versionFile: path.resolve('./VERSION') });
20
20
  }
21
- static isEnabled() {
21
+ init() {
22
22
  try {
23
23
  fs.accessSync(this.getContext('versionFile'));
24
- return true;
25
24
  } catch {
26
25
  throw e('Skipping release: VERSION file not present.', false);
27
26
  }
28
- }
29
- init() {
27
+
30
28
  const data = fs.readFileSync(this.getContext('versionFile'));
31
29
  const latestVersion = data.toString().trim();
32
30
  this.setContext({ latestVersion });