@benshawmean/envedit 1.0.1 → 1.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.
package/.gitlab-ci.yml CHANGED
@@ -11,11 +11,21 @@ default:
11
11
  image: oven/bun:debian
12
12
  before_script:
13
13
  - apt-get update -y > /dev/null
14
- - apt-get install -qy git build-essential jq curl make > /dev/null
14
+ - apt-get install -qy git curl > /dev/null
15
15
  - bun i
16
16
 
17
+ build:
18
+ stage: build
19
+ script:
20
+ - bun build.ts
21
+ artifacts:
22
+ paths:
23
+ - bin/envedit
24
+
17
25
  .deploy: &deploy
18
26
  stage: deploy
27
+ needs:
28
+ - build
19
29
  id_tokens:
20
30
  SIGSTORE_ID_TOKEN:
21
31
  aud: sigstore
package/bin/envedit ADDED
Binary file
package/build.ts ADDED
@@ -0,0 +1,11 @@
1
+ Bun.build({
2
+ entrypoints: ["index.ts"],
3
+ outdir: "bin",
4
+ compile: {
5
+ outfile: "envedit",
6
+ },
7
+ bytecode: true,
8
+ minify: true,
9
+ format: "esm",
10
+ target: "bun",
11
+ })
package/index.ts CHANGED
@@ -1,3 +1,4 @@
1
+ #!/usr/bin/env bun
1
2
  import fs from "node:fs";
2
3
 
3
4
  import { input, password, select, checkbox, confirm } from "@inquirer/prompts";
package/package.json CHANGED
@@ -2,10 +2,8 @@
2
2
  "name": "@benshawmean/envedit",
3
3
  "module": "index.ts",
4
4
  "type": "module",
5
- "version": "1.0.1",
6
- "bin": {
7
- "envedit": "index.ts"
8
- },
5
+ "version": "1.0.3",
6
+ "bin": "bin/envedit",
9
7
  "repository": {
10
8
  "url": "https://gitlab.com/benshawmean/envedit.git"
11
9
  },
@@ -15,7 +13,7 @@
15
13
  "tag": "latest"
16
14
  },
17
15
  "devDependencies": {
18
- "@types/bun": "latest",
16
+ "@types/bun": "^1.3.14",
19
17
  "@types/yargs": "^17.0.35"
20
18
  },
21
19
  "peerDependencies": {