@fedify/init 2.5.0-dev.2541 → 2.5.0-dev.2568

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.
@@ -25,7 +25,7 @@ const logger = getLogger([
25
25
  * @returns Configuration object with path and Deno-specific settings
26
26
  */
27
27
  const loadDenoConfig = (data) => {
28
- const lintExcludes = getDenoKvLintExcludes(data);
28
+ const lintExcludes = getDenoLintExcludes(data);
29
29
  return {
30
30
  path: "deno.json",
31
31
  data: {
@@ -35,18 +35,25 @@ const loadDenoConfig = (data) => {
35
35
  imports: joinDepsReg("deno")(getDependencies(data)),
36
36
  lint: {
37
37
  plugins: ["jsr:@fedify/lint"],
38
- ...lintExcludes.length > 0 ? { rules: { exclude: lintExcludes } } : {}
38
+ rules: { exclude: lintExcludes }
39
39
  },
40
40
  ...data.testMode && !data.dryRun ? { links: getLinks(data) } : {}
41
41
  }
42
42
  };
43
43
  };
44
44
  /**
45
- * Deno Lint reports every plugin rule as an error, so `denokv` selections
46
- * would fail `deno lint` without opting out of the deprecation rules. The
47
- * interactive prompt already labels the option as deprecated.
45
+ * Deno Lint reports every plugin rule as an error, so advisory rules that the
46
+ * generated scaffold cannot satisfy have to be excluded. The default actor
47
+ * template has no profile page, so `actor-profile-url-required` would
48
+ * otherwise fail `deno lint`. The interactive prompts already label the
49
+ * `denokv` option as deprecated, so the corresponding deprecation rules are
50
+ * excluded when selected.
48
51
  */
49
- const getDenoKvLintExcludes = ({ kvStore, messageQueue }) => [...kvStore === "denokv" ? ["fedify-lint/deno-kv-store-deprecated"] : [], ...messageQueue === "denokv" ? ["fedify-lint/deno-kv-message-queue-deprecated"] : []];
52
+ const getDenoLintExcludes = ({ kvStore, messageQueue }) => [
53
+ "fedify-lint/actor-profile-url-required",
54
+ ...kvStore === "denokv" ? ["fedify-lint/deno-kv-store-deprecated"] : [],
55
+ ...messageQueue === "denokv" ? ["fedify-lint/deno-kv-message-queue-deprecated"] : []
56
+ ];
50
57
  const getUnstable = ({ kv: { denoUnstable: kv = [] }, mq: { denoUnstable: mq = [] } }) => {
51
58
  const unstable = pipe(needsUnstableTemporal() ? ["temporal"] : [], concat(kv), concat(mq), uniq, toArray);
52
59
  return isEmpty(unstable) ? {} : { unstable };
@@ -1,4 +1,4 @@
1
1
  //#region deno.json
2
- var version = "2.5.0-dev.2541+d39a2437";
2
+ var version = "2.5.0-dev.2568+889927c4";
3
3
  //#endregion
4
4
  export { version };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fedify/init",
3
- "version": "2.5.0-dev.2541+d39a2437",
3
+ "version": "2.5.0-dev.2568+889927c4",
4
4
  "description": "Project initializer for Fedify",
5
5
  "keywords": [
6
6
  "fedify",