@trayai/tray-sync-cli 0.1.2 → 0.1.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.
package/dist/cli.js CHANGED
@@ -10,15 +10,13 @@ import { projectCommand } from "./commands/project.js";
10
10
  import { envCommand } from "./commands/env.js";
11
11
  import { authCommand } from "./commands/auth.js";
12
12
  import { promoteCommand } from "./commands/promote.js";
13
- import { BANNER } from "./views/banner.js";
14
13
  const __dirname = path.dirname(fileURLToPath(import.meta.url));
15
14
  const pkg = JSON.parse(readFileSync(path.join(__dirname, "..", "package.json"), "utf8"));
16
15
  const program = new Command();
17
16
  program
18
17
  .name("tray")
19
18
  .description("Mirror Tray projects to local files and promote them between Tray environments")
20
- .version(pkg.version, "-v, --version")
21
- .addHelpText("beforeAll", (context) => (context.command === program ? BANNER : ""));
19
+ .version(pkg.version, "-v, --version");
22
20
  program.addCommand(initCommand);
23
21
  program.addCommand(pullCommand);
24
22
  program.addCommand(statusCommand);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trayai/tray-sync-cli",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "CLI tool to clone Tray projects and related assets to a local directory, and promote them between Tray environments",
5
5
  "bin": {
6
6
  "tray": "dist/cli.js"
@@ -24,7 +24,14 @@
24
24
  "pretest": "tsc -p tsconfig.test.json",
25
25
  "test": "node --test dist-test/test/**/*.test.js",
26
26
  "typecheck": "tsc -p tsconfig.json --noEmit",
27
- "build-and-reinstall": "npm uninstall -g @trayai/tray-sync-cli --silent || true; npm run build && npm pack --silent | xargs -I{} sh -c 'npm install -g ./{} && rm ./{}'"
27
+ "build-and-reinstall": "npm uninstall -g @trayai/tray-sync-cli --silent || true; npm run build && npm pack --silent | xargs -I{} sh -c 'npm install -g ./{} && rm ./{}'",
28
+ "gallery:env": "tsc -p tsconfig.test.json && node dist-test/test/manual/envOutputGallery.js",
29
+ "gallery:status": "tsc -p tsconfig.test.json && node dist-test/test/manual/statusOutputGallery.js",
30
+ "gallery:pull": "tsc -p tsconfig.test.json && node dist-test/test/manual/pullOutputGallery.js",
31
+ "gallery:project": "tsc -p tsconfig.test.json && node dist-test/test/manual/projectOutputGallery.js",
32
+ "gallery:init": "tsc -p tsconfig.test.json && node dist-test/test/manual/initOutputGallery.js",
33
+ "gallery:promote": "tsc -p tsconfig.test.json && node dist-test/test/manual/promoteOutputGallery.js",
34
+ "gallery:auth": "tsc -p tsconfig.test.json && node dist-test/test/manual/authOutputGallery.js"
28
35
  },
29
36
  "license": "Apache-2.0",
30
37
  "dependencies": {
@@ -1,17 +0,0 @@
1
- export const BANNER = `
2
- ┌───────────────────────────────────────────────────────────────────────────────────────┐
3
- │ :. │
4
- │ *######: . │
5
- │ +#+ ## +##. │
6
- │ .: ## *# = │
7
- │ .############. +###* .*= +: .##= *# =*- +*: ##+ -*: *= │
8
- │ ##* ##+ *#. :###+ .##- ### ##: +#= ##* *##= #* │
9
- │ *#= ##= *# :#* *#. ## ## #* +#+ *#= #* │
10
- │ .##. ##= *# :#* =#* .## :#*## :## ##= #* │
11
- │ *##+ ##= :### :#* -####*## =## :## .#######= #* │
12
- │ +#= │
13
- │ +#+ │
14
- │ │
15
- └───────────────────────────────────────────────────────────────────────────────────────┘
16
- `;
17
- //# sourceMappingURL=banner.js.map