@rshono/create 1.0.0-rc.13 → 1.0.0-rc.15

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Lasse Tange
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/dist/api.mjs CHANGED
@@ -147,7 +147,7 @@ __webpack_require__.d(__webpack_exports__, {
147
147
 
148
148
  ;// CONCATENATED MODULE: ./src/generated/framework.ts
149
149
  // GENERATED by scripts/codegen.mjs from packages/core — do not edit. Run `pnpm --filter @rshono/create codegen`.
150
- /** The framework release a scaffolded app is pinned to: this package and rshono ship together. */ const RSHONO_VERSION = '1.0.0-rc.13';
150
+ /** The framework release a scaffolded app is pinned to: this package and rshono ship together. */ const RSHONO_VERSION = '1.0.0-rc.15';
151
151
  /**
152
152
  * The Node range rshono declares, restated in every scaffolded app's `engines` — so a CI image or a contributor
153
153
  * on an older Node hears it from their package manager rather than from a stack trace.
@@ -327,8 +327,9 @@ __webpack_require__.d(__webpack_exports__, {
327
327
  ],
328
328
  platformSetup: [
329
329
  `There is no settings page here; the upload is yours to script. A job needs \`${pm.name} install && ${build}\`,`,
330
- 'then the function package: `dist/`, plus `node_modules` for any dependency of your own, which the server',
331
- 'bundle leaves external.'
330
+ 'then the function package: `dist/` and nothing else, with the handler at `dist/server/main.mjs`. Your',
331
+ 'dependencies are compiled into the bundle for this target, so no `node_modules` is uploaded — which also',
332
+ 'means a native addon fails the build here rather than the deploy.'
332
333
  ].join('\n')
333
334
  }
334
335
  };
@@ -404,6 +405,12 @@ const OXLINT = {
404
405
  scripts: {
405
406
  lint: 'eslint .',
406
407
  'lint:fix': 'eslint . --fix'
408
+ },
409
+ // The pin is invisible from the command line, and its consequence is not: the rules reason about the
410
+ // program through an older compiler than the one that builds it, so a fix can produce code `tsc` rejects.
411
+ // The generated eslint.config.mjs explains why; the README's table is where someone reads what to type.
412
+ scriptHelp: {
413
+ 'lint:fix': 'apply what it can — then run typecheck, see eslint.config.mjs'
407
414
  }
408
415
  };
409
416
  const BIOME = {
package/dist/cli.mjs CHANGED
@@ -2941,7 +2941,7 @@ function hasGit(cwd) {
2941
2941
 
2942
2942
  ;// CONCATENATED MODULE: ./src/generated/framework.ts
2943
2943
  // GENERATED by scripts/codegen.mjs from packages/core — do not edit. Run `pnpm --filter @rshono/create codegen`.
2944
- /** The framework release a scaffolded app is pinned to: this package and rshono ship together. */ const RSHONO_VERSION = '1.0.0-rc.13';
2944
+ /** The framework release a scaffolded app is pinned to: this package and rshono ship together. */ const RSHONO_VERSION = '1.0.0-rc.15';
2945
2945
  /**
2946
2946
  * The Node range rshono declares, restated in every scaffolded app's `engines` — so a CI image or a contributor
2947
2947
  * on an older Node hears it from their package manager rather than from a stack trace.
@@ -3299,8 +3299,9 @@ const QUALITY_PRESETS = [
3299
3299
  ],
3300
3300
  platformSetup: [
3301
3301
  `There is no settings page here; the upload is yours to script. A job needs \`${pm.name} install && ${build}\`,`,
3302
- 'then the function package: `dist/`, plus `node_modules` for any dependency of your own, which the server',
3303
- 'bundle leaves external.'
3302
+ 'then the function package: `dist/` and nothing else, with the handler at `dist/server/main.mjs`. Your',
3303
+ 'dependencies are compiled into the bundle for this target, so no `node_modules` is uploaded — which also',
3304
+ 'means a native addon fails the build here rather than the deploy.'
3304
3305
  ].join('\n')
3305
3306
  }
3306
3307
  };
@@ -3376,6 +3377,12 @@ const OXLINT = {
3376
3377
  scripts: {
3377
3378
  lint: 'eslint .',
3378
3379
  'lint:fix': 'eslint . --fix'
3380
+ },
3381
+ // The pin is invisible from the command line, and its consequence is not: the rules reason about the
3382
+ // program through an older compiler than the one that builds it, so a fix can produce code `tsc` rejects.
3383
+ // The generated eslint.config.mjs explains why; the README's table is where someone reads what to type.
3384
+ scriptHelp: {
3385
+ 'lint:fix': 'apply what it can — then run typecheck, see eslint.config.mjs'
3379
3386
  }
3380
3387
  };
3381
3388
  const BIOME = {
@@ -3913,7 +3920,7 @@ function fail(message) {
3913
3920
  async function main() {
3914
3921
  const { values, positionals } = parse();
3915
3922
  if (values.help) return console.log(HELP);
3916
- if (values.version) return console.log("1.0.0-rc.13");
3923
+ if (values.version) return console.log("1.0.0-rc.15");
3917
3924
  // A pipe, a CI job or an agent gets the defaults rather than a prompt nothing can answer. Both streams have to
3918
3925
  // be a terminal: the prompts draw on stdout but read from stdin.
3919
3926
  const interactive = Boolean(process.stdin.isTTY && process.stdout.isTTY) && !values.yes;
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@rshono/create",
3
- "version": "1.0.0-rc.13",
3
+ "version": "1.0.0-rc.15",
4
4
  "description": "Scaffold a new rshono app — Hono + Rspack + React Server Components",
5
5
  "author": "Lasse <lasse@lassetange.com> (https://www.lassetange.com)",
6
- "license": "ISC",
6
+ "license": "MIT",
7
7
  "keywords": [
8
8
  "create",
9
9
  "scaffold",
@@ -46,7 +46,7 @@
46
46
  "@rspack/core": "2.1.7",
47
47
  "@types/node": "^26.1.1",
48
48
  "typescript": "^7.0.2",
49
- "@rshono/core": "1.0.0-rc.13"
49
+ "@rshono/core": "1.0.0-rc.15"
50
50
  },
51
51
  "scripts": {
52
52
  "build": "node scripts/codegen.mjs && node scripts/build.mjs",
@@ -1,3 +1,15 @@
1
+ /**
2
+ * ESLint with type-aware rules, which is the reason to reach for it over a linter that only reads syntax.
3
+ *
4
+ * **This app's `typescript` is pinned below the one rshono is built with.** typescript-eslint reads the
5
+ * compiler API directly and accepts nothing from TypeScript 6.1 up, so `package.json` holds the newest
6
+ * version it takes. Your editor and `tsc` are unaffected — rshono's declarations compile the same under
7
+ * either — but the rules below reason about your program through the *older* compiler.
8
+ *
9
+ * The practical consequence: `lint:fix` can rewrite code that `tsc` then rejects. Run `typecheck` after it,
10
+ * not instead of it. When typescript-eslint widens its peer range, drop the `typescript` pin from
11
+ * `package.json` and this note with it.
12
+ */
1
13
  import js from '@eslint/js';
2
14
  import reactHooks from 'eslint-plugin-react-hooks';
3
15
  import tseslint from 'typescript-eslint';