@intlayer/engine 9.5.4 → 9.5.5
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 +2 -1
- package/dist/cjs/init/utils/devScript.cjs +2 -1
- package/dist/cjs/init/utils/devScript.cjs.map +1 -1
- package/dist/esm/init/utils/devScript.mjs +2 -1
- package/dist/esm/init/utils/devScript.mjs.map +1 -1
- package/dist/types/init/utils/devScript.d.ts.map +1 -1
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -188,7 +188,8 @@ Explore our comprehensive documentation to get started with Intlayer and learn h
|
|
|
188
188
|
<li><a href="https://intlayer.org/doc/environment/create-react-app" rel=''>React CRA</a></li>
|
|
189
189
|
<li><a href="https://intlayer.org/doc/environment/vite-and-react" rel=''>Vite + React</a></li>
|
|
190
190
|
<li><a href="https://intlayer.org/doc/environment/vite-and-react" rel=''>Vite + React using Compiler</a></li>
|
|
191
|
-
<li><a href="https://intlayer.org/doc/environment/vite-and-react/
|
|
191
|
+
<li><a href="https://intlayer.org/doc/environment/vite-and-react/react-router-v7" rel=''>React-router-v7</a></li>
|
|
192
|
+
<li><a href="https://intlayer.org/doc/environment/remix-3" rel=''>Remix 3</a></li>
|
|
192
193
|
<li><a href="https://intlayer.org/doc/environment/tanstack-start" rel=''>Tanstack start</a>
|
|
193
194
|
<ul>
|
|
194
195
|
<li><a href="https://intlayer.org/doc/environment/tanstack-start/solid" rel=''>Solid</a></li>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"devScript.cjs","names":[],"sources":["../../../../src/init/utils/devScript.ts"],"sourcesContent":["/**\n * Frameworks with no Intlayer bundler plugin to host the content watcher.\n *\n * Their dev server is a plain Node process, so the only way to rebuild\n * `.intlayer` on a content change is to run the watcher next to it.\n */\nexport const BACKEND_INTLAYER_PACKAGES = [\n 'express-intlayer',\n 'fastify-intlayer',\n 'adonis-intlayer',\n 'hono-intlayer',\n 'elysia-intlayer',\n];\n\nexport type ResolveDevScriptParams = {\n /** The project's current `dev` script, if it has one. */\n devScript?: string;\n /** Combined prod + dev dependencies of the project. */\n allDeps: Record<string, string>;\n /** Whether a `next.config.*` file was found in the project. */\n isNextJsProject: boolean;\n};\n\n/**\n * Resolves the `dev` script `intlayer init` should write, or `null` when the\n * project's script must be left alone.\n *\n * A Next.js app is always left alone: `withIntlayer` starts the content watcher\n * itself on both bundlers, so wrapping the dev server in `intlayer watch --with`\n * would only add a second watcher rebuilding the same dictionaries. This is checked on the\n * `next` dependency as well as on the config file, since `next.config.*` is\n * optional, and it takes precedence over the backend list, which a Next.js app\n * with a custom server (or a monorepo root) can match too.\n *\n * @example a backend project gets its dev server wrapped\n * ```ts\n * resolveDevScript({\n * devScript: 'node ./src/index.ts',\n * allDeps: { 'express-intlayer': '9.0.0' },\n * isNextJsProject: false,\n * }); // → \"intlayer watch --with 'node ./src/index.ts'\"\n * ```\n *\n * @example a Next.js project keeps its own script\n * ```ts\n * resolveDevScript({\n * devScript: 'next dev',\n * allDeps: { next: '16.0.0' },\n * isNextJsProject: true,\n * }); // → null\n * ```\n */\nexport const resolveDevScript = ({\n devScript,\n allDeps,\n isNextJsProject,\n}: ResolveDevScriptParams): string | null => {\n if (!devScript) return null;\n\n const isNextJsApp = isNextJsProject || Boolean(allDeps.next);\n\n if (isNextJsApp) return null;\n\n const hasBackendIntlayerPackage = BACKEND_INTLAYER_PACKAGES.some(\n (packageName) => allDeps[packageName]\n );\n\n if (!hasBackendIntlayerPackage) return null;\n\n // Re-running init must not nest one wrapper inside another.\n if (devScript.includes('intlayer watch')) return null;\n\n return `intlayer watch --with '${devScript}'`;\n};\n"],"mappings":";;;;;;;;AAMA,MAAa,4BAA4B;CACvC;CACA;CACA;CACA;CACA;AACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwCA,MAAa,oBAAoB,EAC/B,WACA,SACA,sBAC2C;CAC3C,IAAI,CAAC,WAAW,OAAO;CAIvB,IAFoB,mBAAmB,QAAQ,QAAQ,IAAI,GAE1C,OAAO;CAMxB,IAAI,CAJ8B,0BAA0B,MACzD,gBAAgB,QAAQ,YAGE,GAAG,OAAO;CAGvC,IAAI,UAAU,SAAS,gBAAgB,GAAG,OAAO;CAEjD,OAAO,0BAA0B,UAAU;AAC7C"}
|
|
1
|
+
{"version":3,"file":"devScript.cjs","names":[],"sources":["../../../../src/init/utils/devScript.ts"],"sourcesContent":["/**\n * Frameworks with no Intlayer bundler plugin to host the content watcher.\n *\n * Their dev server is a plain Node process, so the only way to rebuild\n * `.intlayer` on a content change is to run the watcher next to it.\n */\nexport const BACKEND_INTLAYER_PACKAGES = [\n 'express-intlayer',\n 'fastify-intlayer',\n 'adonis-intlayer',\n 'hono-intlayer',\n 'elysia-intlayer',\n 'remix-intlayer',\n];\n\nexport type ResolveDevScriptParams = {\n /** The project's current `dev` script, if it has one. */\n devScript?: string;\n /** Combined prod + dev dependencies of the project. */\n allDeps: Record<string, string>;\n /** Whether a `next.config.*` file was found in the project. */\n isNextJsProject: boolean;\n};\n\n/**\n * Resolves the `dev` script `intlayer init` should write, or `null` when the\n * project's script must be left alone.\n *\n * A Next.js app is always left alone: `withIntlayer` starts the content watcher\n * itself on both bundlers, so wrapping the dev server in `intlayer watch --with`\n * would only add a second watcher rebuilding the same dictionaries. This is checked on the\n * `next` dependency as well as on the config file, since `next.config.*` is\n * optional, and it takes precedence over the backend list, which a Next.js app\n * with a custom server (or a monorepo root) can match too.\n *\n * @example a backend project gets its dev server wrapped\n * ```ts\n * resolveDevScript({\n * devScript: 'node ./src/index.ts',\n * allDeps: { 'express-intlayer': '9.0.0' },\n * isNextJsProject: false,\n * }); // → \"intlayer watch --with 'node ./src/index.ts'\"\n * ```\n *\n * @example a Next.js project keeps its own script\n * ```ts\n * resolveDevScript({\n * devScript: 'next dev',\n * allDeps: { next: '16.0.0' },\n * isNextJsProject: true,\n * }); // → null\n * ```\n */\nexport const resolveDevScript = ({\n devScript,\n allDeps,\n isNextJsProject,\n}: ResolveDevScriptParams): string | null => {\n if (!devScript) return null;\n\n const isNextJsApp = isNextJsProject || Boolean(allDeps.next);\n\n if (isNextJsApp) return null;\n\n const hasBackendIntlayerPackage = BACKEND_INTLAYER_PACKAGES.some(\n (packageName) => allDeps[packageName]\n );\n\n if (!hasBackendIntlayerPackage) return null;\n\n // Re-running init must not nest one wrapper inside another.\n if (devScript.includes('intlayer watch')) return null;\n\n return `intlayer watch --with '${devScript}'`;\n};\n"],"mappings":";;;;;;;;AAMA,MAAa,4BAA4B;CACvC;CACA;CACA;CACA;CACA;CACA;AACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwCA,MAAa,oBAAoB,EAC/B,WACA,SACA,sBAC2C;CAC3C,IAAI,CAAC,WAAW,OAAO;CAIvB,IAFoB,mBAAmB,QAAQ,QAAQ,IAAI,GAE1C,OAAO;CAMxB,IAAI,CAJ8B,0BAA0B,MACzD,gBAAgB,QAAQ,YAGE,GAAG,OAAO;CAGvC,IAAI,UAAU,SAAS,gBAAgB,GAAG,OAAO;CAEjD,OAAO,0BAA0B,UAAU;AAC7C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"devScript.mjs","names":[],"sources":["../../../../src/init/utils/devScript.ts"],"sourcesContent":["/**\n * Frameworks with no Intlayer bundler plugin to host the content watcher.\n *\n * Their dev server is a plain Node process, so the only way to rebuild\n * `.intlayer` on a content change is to run the watcher next to it.\n */\nexport const BACKEND_INTLAYER_PACKAGES = [\n 'express-intlayer',\n 'fastify-intlayer',\n 'adonis-intlayer',\n 'hono-intlayer',\n 'elysia-intlayer',\n];\n\nexport type ResolveDevScriptParams = {\n /** The project's current `dev` script, if it has one. */\n devScript?: string;\n /** Combined prod + dev dependencies of the project. */\n allDeps: Record<string, string>;\n /** Whether a `next.config.*` file was found in the project. */\n isNextJsProject: boolean;\n};\n\n/**\n * Resolves the `dev` script `intlayer init` should write, or `null` when the\n * project's script must be left alone.\n *\n * A Next.js app is always left alone: `withIntlayer` starts the content watcher\n * itself on both bundlers, so wrapping the dev server in `intlayer watch --with`\n * would only add a second watcher rebuilding the same dictionaries. This is checked on the\n * `next` dependency as well as on the config file, since `next.config.*` is\n * optional, and it takes precedence over the backend list, which a Next.js app\n * with a custom server (or a monorepo root) can match too.\n *\n * @example a backend project gets its dev server wrapped\n * ```ts\n * resolveDevScript({\n * devScript: 'node ./src/index.ts',\n * allDeps: { 'express-intlayer': '9.0.0' },\n * isNextJsProject: false,\n * }); // → \"intlayer watch --with 'node ./src/index.ts'\"\n * ```\n *\n * @example a Next.js project keeps its own script\n * ```ts\n * resolveDevScript({\n * devScript: 'next dev',\n * allDeps: { next: '16.0.0' },\n * isNextJsProject: true,\n * }); // → null\n * ```\n */\nexport const resolveDevScript = ({\n devScript,\n allDeps,\n isNextJsProject,\n}: ResolveDevScriptParams): string | null => {\n if (!devScript) return null;\n\n const isNextJsApp = isNextJsProject || Boolean(allDeps.next);\n\n if (isNextJsApp) return null;\n\n const hasBackendIntlayerPackage = BACKEND_INTLAYER_PACKAGES.some(\n (packageName) => allDeps[packageName]\n );\n\n if (!hasBackendIntlayerPackage) return null;\n\n // Re-running init must not nest one wrapper inside another.\n if (devScript.includes('intlayer watch')) return null;\n\n return `intlayer watch --with '${devScript}'`;\n};\n"],"mappings":";;;;;;;AAMA,MAAa,4BAA4B;CACvC;CACA;CACA;CACA;CACA;AACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwCA,MAAa,oBAAoB,EAC/B,WACA,SACA,sBAC2C;CAC3C,IAAI,CAAC,WAAW,OAAO;CAIvB,IAFoB,mBAAmB,QAAQ,QAAQ,IAAI,GAE1C,OAAO;CAMxB,IAAI,CAJ8B,0BAA0B,MACzD,gBAAgB,QAAQ,YAGE,GAAG,OAAO;CAGvC,IAAI,UAAU,SAAS,gBAAgB,GAAG,OAAO;CAEjD,OAAO,0BAA0B,UAAU;AAC7C"}
|
|
1
|
+
{"version":3,"file":"devScript.mjs","names":[],"sources":["../../../../src/init/utils/devScript.ts"],"sourcesContent":["/**\n * Frameworks with no Intlayer bundler plugin to host the content watcher.\n *\n * Their dev server is a plain Node process, so the only way to rebuild\n * `.intlayer` on a content change is to run the watcher next to it.\n */\nexport const BACKEND_INTLAYER_PACKAGES = [\n 'express-intlayer',\n 'fastify-intlayer',\n 'adonis-intlayer',\n 'hono-intlayer',\n 'elysia-intlayer',\n 'remix-intlayer',\n];\n\nexport type ResolveDevScriptParams = {\n /** The project's current `dev` script, if it has one. */\n devScript?: string;\n /** Combined prod + dev dependencies of the project. */\n allDeps: Record<string, string>;\n /** Whether a `next.config.*` file was found in the project. */\n isNextJsProject: boolean;\n};\n\n/**\n * Resolves the `dev` script `intlayer init` should write, or `null` when the\n * project's script must be left alone.\n *\n * A Next.js app is always left alone: `withIntlayer` starts the content watcher\n * itself on both bundlers, so wrapping the dev server in `intlayer watch --with`\n * would only add a second watcher rebuilding the same dictionaries. This is checked on the\n * `next` dependency as well as on the config file, since `next.config.*` is\n * optional, and it takes precedence over the backend list, which a Next.js app\n * with a custom server (or a monorepo root) can match too.\n *\n * @example a backend project gets its dev server wrapped\n * ```ts\n * resolveDevScript({\n * devScript: 'node ./src/index.ts',\n * allDeps: { 'express-intlayer': '9.0.0' },\n * isNextJsProject: false,\n * }); // → \"intlayer watch --with 'node ./src/index.ts'\"\n * ```\n *\n * @example a Next.js project keeps its own script\n * ```ts\n * resolveDevScript({\n * devScript: 'next dev',\n * allDeps: { next: '16.0.0' },\n * isNextJsProject: true,\n * }); // → null\n * ```\n */\nexport const resolveDevScript = ({\n devScript,\n allDeps,\n isNextJsProject,\n}: ResolveDevScriptParams): string | null => {\n if (!devScript) return null;\n\n const isNextJsApp = isNextJsProject || Boolean(allDeps.next);\n\n if (isNextJsApp) return null;\n\n const hasBackendIntlayerPackage = BACKEND_INTLAYER_PACKAGES.some(\n (packageName) => allDeps[packageName]\n );\n\n if (!hasBackendIntlayerPackage) return null;\n\n // Re-running init must not nest one wrapper inside another.\n if (devScript.includes('intlayer watch')) return null;\n\n return `intlayer watch --with '${devScript}'`;\n};\n"],"mappings":";;;;;;;AAMA,MAAa,4BAA4B;CACvC;CACA;CACA;CACA;CACA;CACA;AACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwCA,MAAa,oBAAoB,EAC/B,WACA,SACA,sBAC2C;CAC3C,IAAI,CAAC,WAAW,OAAO;CAIvB,IAFoB,mBAAmB,QAAQ,QAAQ,IAAI,GAE1C,OAAO;CAMxB,IAAI,CAJ8B,0BAA0B,MACzD,gBAAgB,QAAQ,YAGE,GAAG,OAAO;CAGvC,IAAI,UAAU,SAAS,gBAAgB,GAAG,OAAO;CAEjD,OAAO,0BAA0B,UAAU;AAC7C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"devScript.d.ts","names":[],"sources":["../../../../src/init/utils/devScript.ts"],"mappings":";;;;;;;qBAMa;
|
|
1
|
+
{"version":3,"file":"devScript.d.ts","names":[],"sources":["../../../../src/init/utils/devScript.ts"],"mappings":";;;;;;;qBAMa;YASD;;EAEV;;EAEA,SAAS;;EAET;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAgCW,qBAAgB,WAAA,SAAA,mBAI1B"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@intlayer/engine",
|
|
3
|
-
"version": "9.5.
|
|
3
|
+
"version": "9.5.5",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Scans and builds Intlayer declaration files into dictionaries based on Intlayer configuration.",
|
|
6
6
|
"keywords": [
|
|
@@ -142,11 +142,11 @@
|
|
|
142
142
|
"typecheck": "tsc --noEmit --project tsconfig.types.json"
|
|
143
143
|
},
|
|
144
144
|
"dependencies": {
|
|
145
|
-
"@intlayer/api": "9.5.
|
|
146
|
-
"@intlayer/config": "9.5.
|
|
147
|
-
"@intlayer/core": "9.5.
|
|
148
|
-
"@intlayer/dictionaries-entry": "9.5.
|
|
149
|
-
"@intlayer/types": "9.5.
|
|
145
|
+
"@intlayer/api": "9.5.5",
|
|
146
|
+
"@intlayer/config": "9.5.5",
|
|
147
|
+
"@intlayer/core": "9.5.5",
|
|
148
|
+
"@intlayer/dictionaries-entry": "9.5.5",
|
|
149
|
+
"@intlayer/types": "9.5.5",
|
|
150
150
|
"@parcel/watcher": "2.6.0",
|
|
151
151
|
"defu": "6.1.7",
|
|
152
152
|
"fast-glob": "3.3.3",
|
|
@@ -166,7 +166,7 @@
|
|
|
166
166
|
"zod": "4.6.5"
|
|
167
167
|
},
|
|
168
168
|
"peerDependencies": {
|
|
169
|
-
"@intlayer/babel": "9.5.
|
|
169
|
+
"@intlayer/babel": "9.5.5"
|
|
170
170
|
},
|
|
171
171
|
"peerDependenciesMeta": {
|
|
172
172
|
"@intlayer/babel": {
|