@ossy/cli 1.11.4 → 1.11.6

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/README.md CHANGED
@@ -7,7 +7,7 @@ Unified CLI for the Ossy platform: app dev/build and CMS workflows.
7
7
  | Command | Description |
8
8
  |---------|-------------|
9
9
  | `init [dir]` | Scaffold a new Ossy app (default: current directory) |
10
- | `dev` | Start dev server with watch (uses `src/*.page.jsx` or `src/pages.jsx`, `src/config.js`) |
10
+ | `dev` | Start dev server with watch (uses `src/**/*.page.jsx`, `src/config.js`) |
11
11
  | `build` | Production build |
12
12
  | `publish` | Queue a container deployment via `@ossy/deployment-tools` (**temporary**; see below), then upload `resourceTemplates` and **site build artifacts** (S3 presign + CMS resource) when `workspaceId` is set |
13
13
  | `cms upload` | Upload resource templates only (same API as publish’s upload step) |
@@ -143,4 +143,4 @@ npx @ossy/cli init
143
143
  npx @ossy/cli init my-app
144
144
  ```
145
145
 
146
- Creates `src/pages.jsx`, `src/config.js`, and `package.json` (if missing).
146
+ Creates `src/home.page.jsx`, `src/config.js`, and `package.json` (if missing).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ossy/cli",
3
- "version": "1.11.4",
3
+ "version": "1.11.6",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/ossy-se/packages.git"
@@ -18,7 +18,7 @@
18
18
  "bin": "./src/index.js",
19
19
  "dependencies": {
20
20
  "@babel/parser": "^7.28.6",
21
- "@ossy/app": "^1.11.4",
21
+ "@ossy/app": "^1.11.6",
22
22
  "arg": "^5.0.2",
23
23
  "glob": "^10.3.10"
24
24
  },
@@ -30,5 +30,5 @@
30
30
  "/src",
31
31
  "README.md"
32
32
  ],
33
- "gitHead": "431ec3200bf38c97ac4d5a269f596133da3958bc"
33
+ "gitHead": "f9bbe1dbd426b6ee5d07021428b900c570952ea4"
34
34
  }
package/src/init/cli.js CHANGED
@@ -50,8 +50,8 @@ export const init = (options) => {
50
50
 
51
51
  const srcDir = path.join(targetDir, 'src')
52
52
  const homePagePath = path.join(srcDir, 'home.page.jsx')
53
- if (fs.existsSync(homePagePath) || fs.existsSync(path.join(targetDir, 'src', 'pages.jsx'))) {
54
- logError({ message: '[@ossy/cli] Project already exists (src/home.page.jsx or src/pages.jsx found)' })
53
+ if (fs.existsSync(homePagePath)) {
54
+ logError({ message: '[@ossy/cli] Project already exists (src/home.page.jsx found)' })
55
55
  process.exit(1)
56
56
  }
57
57