@tailor-platform/sdk-codemod 0.3.0-next.5 → 0.3.0-next.6
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/CHANGELOG.md +6 -0
- package/dist/index.js +36 -0
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @tailor-platform/sdk-codemod
|
|
2
2
|
|
|
3
|
+
## 0.3.0-next.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#1789](https://github.com/tailor-platform/sdk/pull/1789) [`e4db171`](https://github.com/tailor-platform/sdk/commit/e4db171e2a0138ea1a0ba1a972bf895fd0616a28) Thanks [@toiroakr](https://github.com/toiroakr)! - Flag `tailor generate --watch` / `-W` invocations and programmatic `generate({ watch })` usage for manual review as part of the v2 migration (the flag and its dependency watcher are removed in `@tailor-platform/sdk` v2).
|
|
8
|
+
|
|
3
9
|
## 0.3.0-next.5
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
package/dist/index.js
CHANGED
|
@@ -988,6 +988,42 @@ const allCodemods = [
|
|
|
988
988
|
"3. Remove unused `Hooks<F>` / `HookFn<>` type imports"
|
|
989
989
|
].join("\n")
|
|
990
990
|
},
|
|
991
|
+
{
|
|
992
|
+
id: "v2/generate-watch-flag",
|
|
993
|
+
name: "generate --watch flag removed",
|
|
994
|
+
description: "Review and remove `tailor generate --watch` / `-W` invocations and the `watch` option on `GenerateOptions`. The flag, its dependency watcher, and the self-restart-on-change logic are removed; `generate` now always performs a single generation pass.",
|
|
995
|
+
since: "1.0.0",
|
|
996
|
+
until: "2.0.0",
|
|
997
|
+
prereleaseUntil: "2.0.0-next.6",
|
|
998
|
+
filePatterns: [
|
|
999
|
+
"**/package.json",
|
|
1000
|
+
"**/*.{sh,bash,zsh,yml,yaml}",
|
|
1001
|
+
"**/*.{ts,tsx,mts,cts,js,jsx,mjs,cjs}",
|
|
1002
|
+
"**/*.md"
|
|
1003
|
+
],
|
|
1004
|
+
suspiciousPatterns: [/\bgenerate\b[^\n]*(?:--watch\b|\s-W\b)/, [/\bgenerate\s*\(/, /\bwatch\s*:/]],
|
|
1005
|
+
examples: [{
|
|
1006
|
+
lang: "sh",
|
|
1007
|
+
caption: "The --watch/-W flag no longer exists; re-run generate after each change:",
|
|
1008
|
+
before: "tailor generate --watch",
|
|
1009
|
+
after: "tailor generate"
|
|
1010
|
+
}],
|
|
1011
|
+
prompt: [
|
|
1012
|
+
"Tailor SDK v2 removes the `generate --watch` (`-W`) flag along with the",
|
|
1013
|
+
"dependency watcher and self-restart logic that powered it. `tailor generate`",
|
|
1014
|
+
"now always runs a single generation pass and exits.",
|
|
1015
|
+
"",
|
|
1016
|
+
"For each flagged `tailor generate ... --watch` / `-W` invocation (package.json",
|
|
1017
|
+
"scripts, shell scripts, CI configs, or docs), drop the flag and re-run",
|
|
1018
|
+
"`tailor generate` after each change instead. If automatic regeneration on file",
|
|
1019
|
+
"change is still needed, wrap the command with a general-purpose file watcher",
|
|
1020
|
+
"(e.g. `chokidar-cli`, `nodemon`) at the project level.",
|
|
1021
|
+
"",
|
|
1022
|
+
"For programmatic use of `generate()` from `@tailor-platform/sdk/cli`, remove the",
|
|
1023
|
+
"`watch` field from the `GenerateOptions` argument — the function now performs a",
|
|
1024
|
+
"single generation pass and resolves once it completes."
|
|
1025
|
+
].join("\n")
|
|
1026
|
+
},
|
|
991
1027
|
{
|
|
992
1028
|
id: "v2/node-minimum-22-15-0",
|
|
993
1029
|
name: "Node.js minimum version raised to 22.15.0",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tailor-platform/sdk-codemod",
|
|
3
|
-
"version": "0.3.0-next.
|
|
3
|
+
"version": "0.3.0-next.6",
|
|
4
4
|
"description": "Codemod runner for Tailor Platform SDK upgrades",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"@types/semver": "7.7.1",
|
|
33
33
|
"eslint-plugin-zod": "4.7.0",
|
|
34
34
|
"oxlint": "1.73.0",
|
|
35
|
-
"tsdown": "0.22.
|
|
35
|
+
"tsdown": "0.22.5",
|
|
36
36
|
"typescript": "6.0.3",
|
|
37
37
|
"vitest": "4.1.10"
|
|
38
38
|
},
|