@rsvelte/cli 0.1.0 → 0.2.0

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.
Files changed (2) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/package.json +8 -7
package/CHANGELOG.md ADDED
@@ -0,0 +1,20 @@
1
+ # @rsvelte/cli
2
+
3
+ ## 0.2.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 1b50998: `rsvelte format` takes the options of the nearest oxfmt or Prettier configuration unless `rsvelte.config` names them. It refuses a configuration it cannot honor and writes nothing. When the Svelte formatter cannot print an option yet, it leaves the Svelte files and exits with 2.
8
+ - 1b50998: `rsvelte lint` and `rsvelte format` skip the files that `.gitignore`, `.git/info/exclude` and `.ignore` exclude. `rsvelte format` also skips what `.prettierignore` lists. A `.gitignore` counts only inside a Git repository, and a file named on the command line is still read.
9
+
10
+ ### Patch Changes
11
+
12
+ - 4f3a68e: `rsvelte typecheck` accepts `bind:this` on a generic component, as svelte-check does.
13
+ - afb93f4: `rsvelte typecheck` types the `load` functions and endpoints of SvelteKit files as svelte-check does, so their untyped parameters are no longer implicitly `any`. It also types form actions and the hooks files.
14
+ - 1b50998: `rsvelte typecheck` passes over a TypeScript older than 7.1 instead of stopping at it. When it finds no type checker, it prints the command that installs tsrs with the project's package manager.
15
+ - 656fa37: `rsvelte typecheck` no longer reports every file as outside `rootDir` (TS6059) in a project that sets `outDir` but not `rootDir`.
16
+ - c162947: `rsvelte lint` reports `@typescript-eslint/no-unused-vars` in TypeScript files as typescript-eslint does. Signature parameters, parameter properties and what an ambient context declares count as used, and a `typeof` does not.
17
+
18
+ ## 0.1.0
19
+
20
+ - The first release: `rsvelte lint`, `rsvelte format` and `rsvelte typecheck`.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rsvelte/cli",
3
- "version": "0.1.0",
3
+ "version": "0.2.0",
4
4
  "description": "Lint, format and type check Svelte and TypeScript, fast",
5
5
  "keywords": [
6
6
  "svelte",
@@ -20,17 +20,18 @@
20
20
  },
21
21
  "files": [
22
22
  "bin",
23
- "platforms.json"
23
+ "platforms.json",
24
+ "CHANGELOG.md"
24
25
  ],
25
26
  "engines": {
26
27
  "node": ">=18"
27
28
  },
28
29
  "optionalDependencies": {
29
- "@rsvelte/cli-darwin-arm64": "0.1.0",
30
- "@rsvelte/cli-darwin-x64": "0.1.0",
31
- "@rsvelte/cli-linux-arm64-gnu": "0.1.0",
32
- "@rsvelte/cli-linux-x64-gnu": "0.1.0",
33
- "@rsvelte/cli-win32-x64-msvc": "0.1.0"
30
+ "@rsvelte/cli-darwin-arm64": "0.2.0",
31
+ "@rsvelte/cli-darwin-x64": "0.2.0",
32
+ "@rsvelte/cli-linux-arm64-gnu": "0.2.0",
33
+ "@rsvelte/cli-linux-x64-gnu": "0.2.0",
34
+ "@rsvelte/cli-win32-x64-msvc": "0.2.0"
34
35
  },
35
36
  "peerDependencies": {
36
37
  "tsrs": ">=7.1.0-beta.tsrs2 <7.2.0"