@virmator/init 13.3.7 → 13.3.9
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/dist/init.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Tests for this plugin are inside the `virmator` package since a lot of `init`'s functionality is
|
|
3
3
|
* missed without the other packages.
|
|
4
4
|
*/
|
|
5
|
-
import { awaitedBlockingMap, filterObject, getEnumTypedValues, isEnumValue, joinWithFinalConjunction, pickObjectKeys, } from '@augment-vir/common';
|
|
5
|
+
import { awaitedBlockingMap, filterObject, getEnumTypedValues, isEnumValue, joinWithFinalConjunction, pickObjectKeys, safeMatch, } from '@augment-vir/common';
|
|
6
6
|
import { readPackageJson, writeJson } from '@augment-vir/node-js';
|
|
7
7
|
import { copyConfigFile, defineVirmatorPlugin, NpmDepType, PackageType, VirmatorEnv, VirmatorNoTraceError, } from '@virmator/core';
|
|
8
8
|
import { basename, join } from 'node:path';
|
|
@@ -350,13 +350,14 @@ async function writePackageJson(originalPackageJson, packagePath) {
|
|
|
350
350
|
await writeJson(join(packagePath, 'package.json'), packageJson);
|
|
351
351
|
}
|
|
352
352
|
function createGitUrls(ref) {
|
|
353
|
+
// looks like `https://github.com/electrovir/augment-vir`
|
|
353
354
|
const repoPath = ref
|
|
354
355
|
.replace(/(\w):(\w)/g, '$1/$2')
|
|
355
356
|
.replace(/\.git$/, '')
|
|
356
357
|
.replace(/^git@/g, 'https://');
|
|
357
358
|
const isGitHub = repoPath.includes('github.com');
|
|
358
359
|
const issuesUrl = isGitHub ? `${repoPath}/issues` : '';
|
|
359
|
-
const username = repoPath
|
|
360
|
+
const [, username,] = safeMatch(repoPath, /\.com\/([^/]+)\//);
|
|
360
361
|
const bugsObject = issuesUrl ? { bugs: { url: issuesUrl } } : {};
|
|
361
362
|
const userUrlObject = isGitHub
|
|
362
363
|
? {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@virmator/init",
|
|
3
|
-
"version": "13.3.
|
|
3
|
+
"version": "13.3.9",
|
|
4
4
|
"description": "Default init plugin for virmator.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"virmator",
|
|
@@ -32,15 +32,15 @@
|
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@augment-vir/common": "^29.3.0",
|
|
34
34
|
"@augment-vir/node-js": "^29.3.0",
|
|
35
|
-
"@virmator/core": "^13.3.
|
|
36
|
-
"simple-git": "^3.
|
|
35
|
+
"@virmator/core": "^13.3.9",
|
|
36
|
+
"simple-git": "^3.26.0"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@types/node": "^22.5.
|
|
39
|
+
"@types/node": "^22.5.4",
|
|
40
40
|
"element-vir": "^22.2.2",
|
|
41
41
|
"mono-vir": "^1.0.1",
|
|
42
|
-
"tsx": "^4.
|
|
43
|
-
"type-fest": "^4.
|
|
42
|
+
"tsx": "^4.19.0",
|
|
43
|
+
"type-fest": "^4.26.1"
|
|
44
44
|
},
|
|
45
45
|
"engines": {
|
|
46
46
|
"node": ">=22"
|