@daiyam/artifact-vsx-ts 0.11.23 → 0.11.25

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/.artifactrc.yml CHANGED
@@ -2,7 +2,10 @@ $schema: https://raw.githubusercontent.com/zokugun/artifact/v0.11.0/schemas/v3/p
2
2
 
3
3
  upsert:
4
4
  .github/scripts/get-changelog.js:
5
- rename: .github/scripts/get-changelog.cjs
5
+ if_exists: remove
6
+
7
+ .github/scripts/get-changelog.cjs:
8
+ if_exists: remove
6
9
 
7
10
  update:
8
11
  CHANGELOG.md:
@@ -33,3 +36,6 @@ update:
33
36
 
34
37
  src/utils/*:
35
38
  if_exists: overwrite
39
+
40
+ variables:
41
+ REPOSITORY_SLUG: =package.json.repository.url |> toGitUrl |> _.full_name
@@ -92,7 +92,7 @@ jobs:
92
92
  - name: Get Changelog
93
93
  if: env.RELEASE_EXISTS == 'no'
94
94
  run: |
95
- CHANGELOG_ENTRY=$(node .github/scripts/get-changelog.cjs ${VERSION})
95
+ CHANGELOG_ENTRY=$(npx @zokugun/extract-changelog get ${VERSION})
96
96
 
97
97
  # Properly handle multiline output in GitHub Actions
98
98
  EOF=$(dd if=/dev/urandom bs=15 count=1 status=none | base64)
@@ -1,4 +1,17 @@
1
- # Changelog
1
+ Changelog
2
+ =========
3
+
4
+ All notable changes to this project will be documented in this file.
5
+
6
+ The format is based on [Keep a Changelog][keepachangelog], and this project adheres to [Semantic Versioning][semver].
7
+
8
+ [Unreleased]
9
+ ------------
10
+
11
+ ### Added
2
12
 
3
- ## v0.1.0 | #[[date.YYYY-MM-DD]]
4
13
  - initial release
14
+
15
+ [keepachangelog]: https://keepachangelog.com/en/2.0.0/
16
+ [semver]: https://semver.org/spec/v2.0.0.html
17
+ [unreleased]: https://github.com/#[[vars.REPOSITORY_SLUG]]/compare/0.0.0...HEAD
@@ -26,8 +26,11 @@
26
26
  "tsc-watch": "7.2.1"
27
27
  },
28
28
  "overrides": {
29
+ "get-uri": {
30
+ "basic-ftp": "6.2.3"
31
+ },
29
32
  "release-it": {
30
- "undici": "7.29.0"
33
+ "undici": "7.30.1"
31
34
  }
32
35
  },
33
36
  "allowScripts": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daiyam/artifact-vsx-ts",
3
- "version": "0.11.23",
3
+ "version": "0.11.25",
4
4
  "description": "The configuration to create Visual Studio extensions and publish them on Visual Studio Marketplace and Open VSX Registry.",
5
5
  "author": {
6
6
  "name": "Baptiste Augrain",
@@ -31,5 +31,5 @@
31
31
  "project-template",
32
32
  "scaffold"
33
33
  ],
34
- "gitHead": "dd9461cd6c5f9fa7bb31f43c7905f272f916df01"
34
+ "gitHead": "306028f50ac9d5efc62b90bebdd2c02d1eadf2cd"
35
35
  }
@@ -1,39 +0,0 @@
1
- /* eslint-disable no-console */
2
- 'use strict';
3
-
4
- const fs = require('fs');
5
- const path = require('path');
6
-
7
- const EXIT_SUCCESS = 0;
8
- const EXIT_FAILURE = 1;
9
-
10
- // Get version from command line argument (with 'v' prefix)
11
- const [,, version] = process.argv;
12
-
13
- try {
14
- const changelog = fs.readFileSync(path.join(process.cwd(), 'CHANGELOG.md'), 'utf8');
15
-
16
- // Regular expression to match a version section with the date
17
- // Matches from "## v0.8.1 | 2025-04-23" until the next ## or end of file
18
- const versionRegex = new RegExp(`## ${version} \\| \\d{4}-\\d{2}-\\d{2}[^#]*(?=## |$)`, 's');
19
-
20
- const match = changelog.match(versionRegex);
21
-
22
- if(match) {
23
- const [header] = match;
24
-
25
- // Remove the version header and trim whitespace
26
- const notes = header.replace(/^## v\d+\.\d+\.\d+ \| \d{4}-\d{2}-\d{2}\n/, '').trim();
27
-
28
- console.log(notes);
29
- process.exit(EXIT_SUCCESS);
30
- }
31
- else {
32
- console.error(`No changelog entry found for version ${version}`);
33
- process.exit(EXIT_FAILURE);
34
- }
35
- }
36
- catch(error) {
37
- console.error('Error reading CHANGELOG.md:', error);
38
- process.exit(EXIT_FAILURE);
39
- }