@wyxos/zephyr 0.2.1 → 0.2.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/package.json CHANGED
@@ -1,48 +1,49 @@
1
- {
2
- "name": "@wyxos/zephyr",
3
- "version": "0.2.1",
4
- "description": "A streamlined deployment tool for web applications with intelligent Laravel project detection",
5
- "type": "module",
6
- "main": "./src/index.mjs",
7
- "bin": {
8
- "zephyr": "bin/zephyr.mjs"
9
- },
10
- "scripts": {
11
- "test": "vitest",
12
- "release": "node publish.mjs"
13
- },
14
- "keywords": [
15
- "deployment",
16
- "laravel",
17
- "ssh",
18
- "automation",
19
- "devops",
20
- "git"
21
- ],
22
- "author": "wyxos",
23
- "license": "MIT",
24
- "repository": {
25
- "type": "git",
26
- "url": "git+https://github.com/wyxos/zephyr.git"
27
- },
28
- "bugs": {
29
- "url": "https://github.com/wyxos/zephyr/issues"
30
- },
31
- "homepage": "https://github.com/wyxos/zephyr#readme",
32
- "engines": {
33
- "node": ">=16.0.0"
34
- },
35
- "files": [
36
- "bin/",
37
- "src/",
38
- "README.md"
39
- ],
40
- "dependencies": {
41
- "chalk": "5.3.0",
42
- "inquirer": "^9.2.12",
43
- "node-ssh": "^13.1.0"
44
- },
45
- "devDependencies": {
46
- "vitest": "^2.1.8"
47
- }
48
- }
1
+ {
2
+ "name": "@wyxos/zephyr",
3
+ "version": "0.2.3",
4
+ "description": "A streamlined deployment tool for web applications with intelligent Laravel project detection",
5
+ "type": "module",
6
+ "main": "./src/index.mjs",
7
+ "bin": {
8
+ "zephyr": "bin/zephyr.mjs"
9
+ },
10
+ "scripts": {
11
+ "test": "vitest run",
12
+ "release": "node bin/zephyr.mjs --type=node"
13
+ },
14
+ "keywords": [
15
+ "deployment",
16
+ "laravel",
17
+ "ssh",
18
+ "automation",
19
+ "devops",
20
+ "git"
21
+ ],
22
+ "author": "wyxos",
23
+ "license": "MIT",
24
+ "repository": {
25
+ "type": "git",
26
+ "url": "git+https://github.com/wyxos/zephyr.git"
27
+ },
28
+ "bugs": {
29
+ "url": "https://github.com/wyxos/zephyr/issues"
30
+ },
31
+ "homepage": "https://github.com/wyxos/zephyr#readme",
32
+ "engines": {
33
+ "node": ">=16.0.0"
34
+ },
35
+ "files": [
36
+ "bin/",
37
+ "src/",
38
+ "README.md"
39
+ ],
40
+ "dependencies": {
41
+ "chalk": "5.3.0",
42
+ "inquirer": "^9.2.12",
43
+ "node-ssh": "^13.1.0",
44
+ "semver": "^7.6.3"
45
+ },
46
+ "devDependencies": {
47
+ "vitest": "^2.1.8"
48
+ }
49
+ }
package/src/index.mjs CHANGED
@@ -8,6 +8,7 @@ import chalk from 'chalk'
8
8
  import inquirer from 'inquirer'
9
9
  import { NodeSSH } from 'node-ssh'
10
10
  import { releaseNode } from './release-node.mjs'
11
+ import { releasePackagist } from './release-packagist.mjs'
11
12
 
12
13
  const IS_WINDOWS = process.platform === 'win32'
13
14
 
@@ -1884,6 +1885,21 @@ async function main(releaseType = null) {
1884
1885
  }
1885
1886
  }
1886
1887
 
1888
+ // Handle packagist/composer package release
1889
+ if (releaseType === 'packagist') {
1890
+ try {
1891
+ await releasePackagist()
1892
+ return
1893
+ } catch (error) {
1894
+ logError('\nRelease failed:')
1895
+ logError(error.message)
1896
+ if (error.stack) {
1897
+ console.error(error.stack)
1898
+ }
1899
+ process.exit(1)
1900
+ }
1901
+ }
1902
+
1887
1903
  // Default: Laravel deployment workflow
1888
1904
  const rootDir = process.cwd()
1889
1905
 
@@ -2088,5 +2104,6 @@ export {
2088
2104
  loadProjectConfig,
2089
2105
  saveProjectConfig,
2090
2106
  main,
2091
- releaseNode
2107
+ releaseNode,
2108
+ releasePackagist
2092
2109
  }