cloudflare-next-intl 0.10.0 → 0.10.2
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/bin/db_codegen.mjs +9 -7
- package/bin/db_install_exec.mjs +9 -7
- package/package.json +3 -2
package/bin/db_codegen.mjs
CHANGED
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
// Re-exec shim: `cfni-db-codegen` now lives in cloudflare-next-intl-db,
|
|
2
|
+
// Re-exec shim: `cfni-db-codegen` now lives in cloudflare-next-intl-db-codegen,
|
|
3
3
|
// installed as this package's dependency. Kept here so existing consumers'
|
|
4
4
|
// `npx cfni-db-codegen` invocations keep working with no changes needed.
|
|
5
|
+
import { createRequire } from 'node:module';
|
|
5
6
|
import { fileURLToPath, pathToFileURL } from 'node:url';
|
|
6
7
|
import { dirname, join } from 'node:path';
|
|
7
8
|
|
|
8
|
-
//
|
|
9
|
-
//
|
|
10
|
-
//
|
|
11
|
-
|
|
12
|
-
const
|
|
13
|
-
|
|
9
|
+
// cloudflare-next-intl-db-codegen declares no "exports" map, so its
|
|
10
|
+
// package.json (and therefore its package root) resolves directly —
|
|
11
|
+
// unlike the runtime db package, this one isn't trying to restrict its
|
|
12
|
+
// public surface to a curated set of subpaths.
|
|
13
|
+
const pkgPath = createRequire(import.meta.url).resolve('cloudflare-next-intl-db-codegen/package.json');
|
|
14
|
+
const codegenPackageRoot = dirname(fileURLToPath(pathToFileURL(pkgPath)));
|
|
15
|
+
await import(pathToFileURL(join(codegenPackageRoot, 'bin', 'db_codegen.mjs')).href);
|
package/bin/db_install_exec.mjs
CHANGED
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
// Re-exec shim: `cfni-db-install-exec` now lives in cloudflare-next-intl-db,
|
|
2
|
+
// Re-exec shim: `cfni-db-install-exec` now lives in cloudflare-next-intl-db-codegen,
|
|
3
3
|
// installed as this package's dependency. Kept here so existing consumers'
|
|
4
4
|
// `npx cfni-db-install-exec` invocations keep working with no changes needed.
|
|
5
|
+
import { createRequire } from 'node:module';
|
|
5
6
|
import { fileURLToPath, pathToFileURL } from 'node:url';
|
|
6
7
|
import { dirname, join } from 'node:path';
|
|
7
8
|
|
|
8
|
-
//
|
|
9
|
-
//
|
|
10
|
-
//
|
|
11
|
-
|
|
12
|
-
const
|
|
13
|
-
|
|
9
|
+
// cloudflare-next-intl-db-codegen declares no "exports" map, so its
|
|
10
|
+
// package.json (and therefore its package root) resolves directly —
|
|
11
|
+
// unlike the runtime db package, this one isn't trying to restrict its
|
|
12
|
+
// public surface to a curated set of subpaths.
|
|
13
|
+
const pkgPath = createRequire(import.meta.url).resolve('cloudflare-next-intl-db-codegen/package.json');
|
|
14
|
+
const codegenPackageRoot = dirname(fileURLToPath(pathToFileURL(pkgPath)));
|
|
15
|
+
await import(pathToFileURL(join(codegenPackageRoot, 'bin', 'db_install_exec.mjs')).href);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cloudflare-next-intl",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.2",
|
|
4
4
|
"description": "Optimized Next Intl Package Special for App Router and Cloudflare",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -358,7 +358,8 @@
|
|
|
358
358
|
"homepage": "https://github.com/demian-ilnytskyi/cloudflare-next-intl#readme",
|
|
359
359
|
"dependencies": {
|
|
360
360
|
"@microsoft/clarity": "^1.0.2",
|
|
361
|
-
"cloudflare-next-intl-db": "^0.
|
|
361
|
+
"cloudflare-next-intl-db": "^0.2.1",
|
|
362
|
+
"cloudflare-next-intl-db-codegen": "^0.1.1",
|
|
362
363
|
"jose": "^6.2.8",
|
|
363
364
|
"sharp": "^0.34.5 || ^0.35.0"
|
|
364
365
|
},
|