@vidavidorra/create-project 2.0.23 → 2.0.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/dist/content/package.js
CHANGED
|
@@ -73,6 +73,9 @@ class Package extends File {
|
|
|
73
73
|
this._package.name = this._options.package;
|
|
74
74
|
this._package.version = '0.1.0';
|
|
75
75
|
this._package.description = this._options.description;
|
|
76
|
+
this._package.homepage = `${this.gitHubUrl}#readme`;
|
|
77
|
+
this._package.bugs.url = `${this.gitHubUrl}/issues`;
|
|
78
|
+
this._package.repository.url = `git+${this.gitHubUrl}.git`;
|
|
76
79
|
this._package.author = this._options.author;
|
|
77
80
|
this._package.devDependencies = {
|
|
78
81
|
...this._package.devDependencies,
|
|
@@ -128,6 +131,10 @@ class Package extends File {
|
|
|
128
131
|
this._content = JSON.stringify(this._package, undefined, 2);
|
|
129
132
|
return this;
|
|
130
133
|
}
|
|
134
|
+
get gitHubUrl() {
|
|
135
|
+
const { githubOwner, githubRepository } = this._options;
|
|
136
|
+
return `https://github.com/${githubOwner}/${githubRepository}`;
|
|
137
|
+
}
|
|
131
138
|
}
|
|
132
139
|
export { Package };
|
|
133
140
|
//# sourceMappingURL=package.js.map
|
|
@@ -122,7 +122,7 @@ class Readme extends File {
|
|
|
122
122
|
}
|
|
123
123
|
gitHubUrl(path, repository) {
|
|
124
124
|
const { githubOwner: owner, githubRepository } = this._options;
|
|
125
|
-
return new URL(path, `https://github.com/${
|
|
125
|
+
return new URL(path, `https://github.com/${owner}/${repository ?? githubRepository}/`).toString();
|
|
126
126
|
}
|
|
127
127
|
}
|
|
128
128
|
export { Readme };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vidavidorra/create-project",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.25",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Interactively create a GitHub project",
|
|
6
6
|
"keywords": [
|
|
@@ -214,11 +214,11 @@
|
|
|
214
214
|
"@semantic-release/changelog": "6.0.3",
|
|
215
215
|
"@semantic-release/exec": "6.0.3",
|
|
216
216
|
"@semantic-release/git": "10.0.1",
|
|
217
|
-
"@types/node": "20.11.
|
|
217
|
+
"@types/node": "20.11.17",
|
|
218
218
|
"@types/prettier": "2.7.3",
|
|
219
219
|
"@types/sinon": "17.0.3",
|
|
220
220
|
"@types/validate-npm-package-name": "4.0.2",
|
|
221
|
-
"@vidavidorra/commitlint-config": "6.0.
|
|
221
|
+
"@vidavidorra/commitlint-config": "6.0.5",
|
|
222
222
|
"ava": "6.1.1",
|
|
223
223
|
"c8": "9.1.0",
|
|
224
224
|
"husky": "9.0.10",
|