@shevky/plugin-robots-txt 0.0.1 → 0.0.3

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.
Files changed (2) hide show
  1. package/main.js +5 -7
  2. package/package.json +2 -2
package/main.js CHANGED
@@ -1,5 +1,8 @@
1
1
  import { plugin } from "@shevky/base";
2
2
 
3
+ const PLUGIN_NAME = "shevky-robots-txt";
4
+ const PLUGIN_VERSION = "0.0.3";
5
+
3
6
  /** @type {import("@shevky/base").PluginHooks} */
4
7
  const hooks = {
5
8
  [plugin.hooks.DIST_CLEAN]: async function (ctx) {
@@ -29,14 +32,9 @@ const hooks = {
29
32
  const path = ctx.path.combine(ctx.paths.dist, "robots.txt");
30
33
 
31
34
  await ctx.file.write(path, payload);
32
- ctx.log.debug("Robots.txt has been created.");
35
+ ctx.log.debug(`[${PLUGIN_NAME}] Robots.txt has been created.`);
33
36
  },
34
37
  };
35
38
 
36
- const PLUGIN = {
37
- name: "shevky-robots-txt",
38
- version: "0.0.1",
39
- hooks,
40
- };
41
-
39
+ const PLUGIN = { name: PLUGIN_NAME, version: PLUGIN_VERSION, hooks };
42
40
  export default PLUGIN;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shevky/plugin-robots-txt",
3
- "version": "0.0.1",
3
+ "version": "0.0.3",
4
4
  "description": "Shevky plugin that generates robots.txt during builds.",
5
5
  "type": "module",
6
6
  "main": "main.js",
@@ -36,6 +36,6 @@
36
36
  "access": "public"
37
37
  },
38
38
  "dependencies": {
39
- "@shevky/base": "^0.0.1"
39
+ "@shevky/base": "^0.0.5"
40
40
  }
41
41
  }