@react-consulting/rc-kit 0.13.2 → 0.13.3

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.
@@ -184,6 +184,8 @@ describe("migrateToKitPackage", () => {
184
184
  'spawnSync(rc, ["op:sync"])\nconsole.warn("rc op:sync a échoué")\n',
185
185
  "vendor/other/.git": "gitdir: elsewhere\n",
186
186
  "vendor/other/b.ts": 'import "@rc/kit"\n',
187
+ "CLAUDE.md": "bun dev # rc op:sync puis turbo\n",
188
+ "apps/api/wrangler.jsonc": "// secrets lus par `rc op:sync`\n{}\n",
187
189
  "rc.config.json":
188
190
  '{\n "project": "contoso-stay",\n "apps": { "api": { "path": "apps/api" } }\n}\n',
189
191
  })
@@ -217,6 +219,12 @@ describe("migrateToKitPackage", () => {
217
219
  expect(result.manual.some((line) => line.includes(".env.example"))).toBe(
218
220
  true
219
221
  )
222
+ expect(readFileSync(join(root, "CLAUDE.md"), "utf8")).toContain(
223
+ "rc secrets:pull puis turbo"
224
+ )
225
+ expect(
226
+ readFileSync(join(root, "apps/api/wrangler.jsonc"), "utf8")
227
+ ).toContain("`rc secrets:pull`")
220
228
  expect(readFileSync(join(root, "scripts/dev/boot.ts"), "utf8")).toBe(
221
229
  'spawnSync(rc, ["secrets:pull"])\nconsole.warn("rc secrets:pull a échoué")\n'
222
230
  )
@@ -53,7 +53,7 @@ const SCRIPT_REWRITES: [RegExp, string][] = [
53
53
  ]
54
54
  const BUILD_IMPORT_RE =
55
55
  /(["'])(?:\.\.?\/)+scripts\/(?:build-commit-sha|deployed-public-env)(?:\.ts)?\1/g
56
- const SOURCE_EXTENSIONS = /\.(?:[cm]?[jt]sx?|astro|vue|svelte)$/
56
+ const SOURCE_EXTENSIONS = /\.(?:[cm]?[jt]sx?|astro|vue|svelte|jsonc)$/
57
57
  const DOC_EXTENSIONS = /\.mdx?$|\.example$/
58
58
  const STALE_DOC_RE =
59
59
  /_rc-kit|@rc\/kit(?![\w-])|ensure-rc-kit|\bop:sync\b|upload-sourcemaps|on-workers-ci/
@@ -382,7 +382,9 @@ function migrateAgentFiles(migration: Migration): void {
382
382
  next = next.replaceAll(`@${spec}`, RULES_IMPORT)
383
383
  }
384
384
 
385
- next = next.replace(LEGACY_IMPORT_RE, KIT_PACKAGE)
385
+ next = next
386
+ .replace(LEGACY_IMPORT_RE, KIT_PACKAGE)
387
+ .replace(LEGACY_SECRETS_COMMAND_RE, `rc ${SECRETS_SCRIPT}`)
386
388
 
387
389
  if (next !== text) {
388
390
  migration.write(file, next, `règles importées par ${RULES_IMPORT}`)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-consulting/rc-kit",
3
- "version": "0.13.2",
3
+ "version": "0.13.3",
4
4
  "description": "Règles, composants, CLI rc et modèle de départ pour des projets Cloudflare Workers en Bun",
5
5
  "license": "MIT",
6
6
  "repository": {