@10stars/config 15.6.4 → 16.0.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@10stars/config",
3
- "version": "15.6.4",
3
+ "version": "16.0.1",
4
4
  "private": false,
5
5
  "bin": {
6
6
  "config": "./src/index.ts"
@@ -32,6 +32,6 @@
32
32
  "oxlint-tsgolint": "^0.24.0",
33
33
  "tsx": "^4.22.5",
34
34
  "type-fest": "^5.7.0",
35
- "typescript": "~6.0.3"
35
+ "typescript": "7.0.1-rc"
36
36
  }
37
37
  }
package/src/index.ts CHANGED
@@ -79,10 +79,6 @@ const actions = {
79
79
  info: `Typecheck code (no watch)`,
80
80
  action: () => exec(`tsc --project ./tsconfig.json --noEmit`),
81
81
  },
82
- typecheckGo: {
83
- info: `Typecheck using tsgo (@typescript/native-preview, experimental)`,
84
- action: () => exec(`@typescript/native-preview --project ./tsconfig.json --noEmit`),
85
- },
86
82
  lint: {
87
83
  info: `Format & Lint code (no watch)`,
88
84
  action: async () => {
@@ -9,7 +9,7 @@ const stripJsoncComments = (jsonc: string): string =>
9
9
  )
10
10
 
11
11
  const extensionsJson = {
12
- recommendations: ["oxc.oxc-vscode"],
12
+ recommendations: ["oxc.oxc-vscode", "TypeScriptTeam.native-preview"],
13
13
  unwantedRecommendations: [
14
14
  "ms-vscode.vscode-typescript-tslint-plugin",
15
15
  "eg2.tslint",
@@ -55,8 +55,8 @@ const settingsJson = {
55
55
  "typescript.implementationsCodeLens.enabled": true,
56
56
  "typescript.referencesCodeLens.enabled": true,
57
57
 
58
- // TypeScript
59
- "typescript.tsdk": "node_modules/typescript/lib",
58
+ // TypeScript — v7 (tsgo) ships no JS tsserver, so use the native-preview LSP extension instead of a tsdk path
59
+ "typescript.experimental.useTsgo": true,
60
60
  "typescript.tsserver.maxTsServerMemory": 8192,
61
61
  "typescript.disableAutomaticTypeAcquisition": true,
62
62
  "typescript.check.npmIsInstalled": false,
@@ -38,7 +38,13 @@
38
38
  "watchOptions": {
39
39
  // Use native file system events for files and directories
40
40
  "watchFile": "useFsEventsOnParentDirectory",
41
- "watchDirectory": "useFsEvents",
41
+ // Watch parent dirs (one FSEvents stream per parent) instead of one stream per directory:
42
+ // watching node_modules deps (e.g. happy-dom's thousands of element dirs) with per-dir streams
43
+ // exhausts the macOS FSEvents/open-fd limit -> "error starting FSEvents stream".
44
+ "watchDirectory": "useFsEventsOnParentDirectory",
45
+
46
+ // Never watch dependencies (they aren't edited); removes the bulk of watched dirs.
47
+ "excludeDirectories": ["**/node_modules"],
42
48
 
43
49
  // Poll files for updates more frequently
44
50
  // when they're updated a lot.