flagshark 1.0.0 → 1.0.1

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/cli.js CHANGED
@@ -3560,7 +3560,8 @@ function formatText(result, options) {
3560
3560
  `Flag Health Score: ${result.healthScore}/100 (${staleCount}/${result.totalFlags} flags are stale)`
3561
3561
  );
3562
3562
  lines.push("");
3563
- lines.push("Full analysis \u2192 https://github.com/FlagShark/flagshark");
3563
+ lines.push("Automate cleanup \u2192 https://flagshark.com");
3564
+ lines.push("Open source CLI \u2192 https://github.com/FlagShark/flagshark");
3564
3565
  }
3565
3566
  return lines.join("\n");
3566
3567
  }
@@ -3591,7 +3592,11 @@ function formatJson(result) {
3591
3592
  languages,
3592
3593
  flags,
3593
3594
  scanDuration: result.scanDuration,
3594
- url: "https://github.com/FlagShark/flagshark"
3595
+ links: {
3596
+ dashboard: "https://flagshark.com",
3597
+ cli: "https://github.com/FlagShark/flagshark",
3598
+ npm: "https://www.npmjs.com/package/flagshark"
3599
+ }
3595
3600
  };
3596
3601
  return JSON.stringify(output, null, 2);
3597
3602
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flagshark",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Find stale feature flags in your codebase",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -33,7 +33,7 @@
33
33
  "scripts": {
34
34
  "build": "npm run build:cli && npm run build:action",
35
35
  "build:cli": "esbuild src/cli.ts --bundle --platform=node --target=node18 --format=esm --outfile=dist/cli.js --external:zod",
36
- "build:action": "esbuild action/index.ts --bundle --platform=node --target=node18 --format=esm --outfile=dist/action.js --external:@actions/core --external:@actions/github --external:zod",
36
+ "build:action": "esbuild action/index.ts --bundle --platform=node --target=node18 --format=cjs --outfile=dist/action.cjs",
37
37
  "test": "vitest run",
38
38
  "test:watch": "vitest",
39
39
  "prepublishOnly": "npm run build && npm test"