@inizioevoke/veeva-astroclm 1.1.6 → 1.1.7

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/.nvmrc ADDED
@@ -0,0 +1 @@
1
+ 24
package/bin/create.js CHANGED
@@ -62,7 +62,7 @@ if (existsSync(targetDir) && readdirSync(targetDir).length > 0) {
62
62
  }
63
63
  mkdirSync(targetDir, { recursive: true })
64
64
 
65
- const skipTopLevel = new Set(['bin', 'node_modules', '.git', 'package-lock.json'])
65
+ const skipTopLevel = new Set(['bin', 'node_modules', '.git', '.gitignore', 'package-lock.json'])
66
66
  const includedLayouts = new Set(TEMPLATES[template].layouts)
67
67
 
68
68
  cpSync(templateRoot, targetDir, {
@@ -83,6 +83,17 @@ for (const dir of ['src/contents', 'src/layouts', 'src/pages']) {
83
83
  mkdirSync(join(targetDir, dir), { recursive: true })
84
84
  }
85
85
 
86
+ // npm never publishes .gitignore, and the template's own ignores (src/pages,
87
+ // src/contents) don't apply to scaffolded projects, so write a dedicated one.
88
+ const gitignore = `.astro/
89
+ deploy/
90
+ dist/
91
+ node_modules/
92
+ .DS_Store
93
+ Thumbs.db
94
+ `
95
+ writeFileSync(join(targetDir, '.gitignore'), gitignore)
96
+
86
97
  const pkgPath = join(targetDir, 'package.json')
87
98
  const pkg = JSON.parse(readFileSync(pkgPath, 'utf8'))
88
99
  pkg.name = basename(targetDir)
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@inizioevoke/veeva-astroclm",
3
3
  "type": "module",
4
- "version": "1.1.6",
4
+ "version": "1.1.7",
5
5
  "bin": "./bin/create.js",
6
6
  "scripts": {
7
7
  "start": "astro dev",
@@ -25,18 +25,18 @@
25
25
  "page-manager": "npx tsx ./tasks/page-manager.ts"
26
26
  },
27
27
  "dependencies": {
28
- "@astrojs/preact": "^6.1.1",
28
+ "@astrojs/preact": "^6.1.2",
29
29
  "@inizioevoke/astro-core": "^3.3.3",
30
- "@inizioevoke/veeva-astroclm-core": "^1.4.8",
30
+ "@inizioevoke/veeva-astroclm-core": "^1.4.9",
31
31
  "@inizioevoke/veeva-clmjs": "^1.0.1",
32
32
  "@inizioevoke/veeva-iva": "^1.4.1",
33
- "astro": "^7.4.2",
34
- "preact": "^11.1.0",
35
- "sass": "^1.106.1"
33
+ "astro": "^7.4.7",
34
+ "preact": "^11.2.0",
35
+ "sass": "^1.108.0"
36
36
  },
37
37
  "devDependencies": {
38
38
  "@astrojs/check": "^0.9.12",
39
- "@types/node": "^26.6.5",
39
+ "@types/node": "^26.6.6",
40
40
  "tsx": "^4.23.15"
41
41
  },
42
42
  "allowScripts": {
@@ -1,12 +0,0 @@
1
- import { defineMiddleware } from "astro:middleware";
2
-
3
- export const onRequest = defineMiddleware((context, next) => {
4
- const url = new URL(context.request.url);
5
-
6
- // Map ./dir to /dir
7
- if (url.pathname.startsWith('./dir')) {
8
- return context.rewrite(url.pathname.replace('./dir', '/dir'));
9
- }
10
-
11
- return next();
12
- });