|
3 | 3 | "type": "module",
|
4 | 4 | "scripts": {
|
5 | 5 | "scripts:release-post": "cross-env NODE_NO_WARNINGS=1 node scripts/release-post/index.mjs",
|
6 |
| - "dev": "cross-env NODE_NO_WARNINGS=1 next dev --turbopack", |
7 |
| - "serve": "npm run dev", |
| 6 | + "dev": "npm run build-blog-data -- --watch & cross-env NODE_NO_WARNINGS=1 next dev --turbopack", |
| 7 | + "serve": "npm run build-blog-data -- --watch & npm run dev", |
| 8 | + "prebuild": "npm run build-blog-data", |
8 | 9 | "build": "cross-env NODE_NO_WARNINGS=1 next build",
|
9 | 10 | "start": "cross-env NODE_NO_WARNINGS=1 next start",
|
10 | 11 | "deploy": "cross-env NEXT_PUBLIC_STATIC_EXPORT=true npm run build",
|
|
16 | 17 | "lint": "turbo run lint:md lint:snippets lint:js lint:css",
|
17 | 18 | "lint:fix": "turbo run lint:md lint:js lint:css --no-cache -- --fix",
|
18 | 19 | "sync-orama": "node ./scripts/orama-search/sync-orama-cloud.mjs",
|
| 20 | + "build-blog-data": "node ./scripts/blog-data/generate.mjs", |
19 | 21 | "test:unit": "cross-env NODE_NO_WARNINGS=1 jest",
|
20 | 22 | "test:unit:watch": "npm run test:unit -- --watch",
|
21 | 23 | "test": "turbo test:unit",
|
22 | 24 | "build:worker": "npx opennextjs-cloudflare build",
|
23 | 25 | "postbuild:worker": "node ./.cloudflare/prepare-build.mjs",
|
24 | 26 | "cf:preview": "npm run build:worker && sleep 3 && npx wrangler dev",
|
25 |
| - "cf:deploy": "npx wrangler deploy" |
| 27 | + "cf:deploy": "npx wrangler deploy", |
| 28 | + "postinstall": "npm run build-blog-data" |
26 | 29 | },
|
27 | 30 | "dependencies": {
|
28 | 31 | "@heroicons/react": "~2.2.0",
|
|
73 | 76 | "devDependencies": {
|
74 | 77 | "@eslint/compat": "~1.2.7",
|
75 | 78 | "@next/eslint-plugin-next": "15.2.0",
|
| 79 | + "@opennextjs/cloudflare": "^0.6.4", |
76 | 80 | "@testing-library/jest-dom": "~6.6.3",
|
77 | 81 | "@testing-library/react": "~16.2.0",
|
78 | 82 | "@testing-library/user-event": "~14.6.1",
|
79 | 83 | "@types/jest": "29.5.14",
|
80 | 84 | "@types/semver": "~7.5.8",
|
| 85 | + "chokidar": "^4.0.3", |
81 | 86 | "eslint-config-next": "15.2.0",
|
82 | 87 | "eslint-import-resolver-typescript": "~3.8.3",
|
83 | 88 | "eslint-plugin-mdx": "~3.1.5",
|
|
96 | 101 | "typescript": "~5.7.2",
|
97 | 102 | "typescript-eslint": "~8.25.0",
|
98 | 103 | "user-agent-data-types": "0.4.2",
|
99 |
| - "wrangler": "^4.6.0", |
100 |
| - "@opennextjs/cloudflare": "^0.6.4" |
| 104 | + "wrangler": "^4.6.0" |
101 | 105 | }
|
102 | 106 | }
|
0 commit comments