@jsonpages/cli 3.0.43 → 3.0.45

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.
@@ -0,0 +1 @@
1
+ {"rewrites":[{"source":"/(.*)","destination":"/index.html"}],"headers":[{"source":"/assets/(.*)","headers":[{"key":"Cache-Control","value":"public, max-age=31536000, immutable"}]}]}
package/package.json CHANGED
@@ -1,15 +1,30 @@
1
1
  {
2
2
  "name": "@jsonpages/cli",
3
- "version": "3.0.43",
4
- "description": "JsonPages CLI - Sovereign Projection Engine",
3
+ "version": "3.0.45",
4
+ "description": "The Sovereign CLI Engine for JsonPages.",
5
5
  "type": "module",
6
6
  "bin": {
7
7
  "jsonpages": "./src/index.js"
8
8
  },
9
9
  "files": [
10
10
  "src",
11
- "assets/src_tenant_alpha.sh"
11
+ "assets/src_tenant_alpha.sh",
12
+ "assets/vercel.json"
12
13
  ],
14
+ "author": "JsonPages Team",
15
+ "license": "MIT",
16
+ "homepage": "https://github.com/jsonpages/npm-jpcore#readme",
17
+ "repository": {
18
+ "type": "git",
19
+ "url": "git+https://github.com/jsonpages/npm-jpcore.git",
20
+ "directory": "packages/core"
21
+ },
22
+ "bugs": {
23
+ "url": "https://github.com/jsonpages/npm-jpcore/issues"
24
+ },
25
+ "publishConfig": {
26
+ "access": "public"
27
+ },
13
28
  "scripts": {
14
29
  "build": "tsc -p ."
15
30
  },
package/src/index.js CHANGED
@@ -335,6 +335,12 @@ async function injectInfraFiles(targetDir, name) {
335
335
  }
336
336
  };
337
337
  await fs.writeJson(path.join(targetDir, 'components.json'), shadcnConfig, { spaces: 2 });
338
+
339
+ // Vercel deploy config (SPA rewrites + asset cache)
340
+ const vercelJsonPath = path.resolve(__dirname, '../assets/vercel.json');
341
+ if (fs.existsSync(vercelJsonPath)) {
342
+ await fs.copy(vercelJsonPath, path.join(targetDir, 'vercel.json'));
343
+ }
338
344
  }
339
345
 
340
346
  program.parse();