@10stars/config 15.2.1 → 15.2.4

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.
@@ -4,7 +4,6 @@
4
4
  "import/export": "off",
5
5
  "import/namespace": "off",
6
6
  "import/no-named-as-default": "off",
7
- "import/no-unresolved": "off",
8
7
  "no-case-declarations": "off",
9
8
  "no-console": "off",
10
9
  "no-magic-numbers": "off",
@@ -24,7 +23,6 @@
24
23
  "typescript/no-invalid-void-type": "off",
25
24
  "typescript/no-magic-numbers": "off",
26
25
  "typescript/no-non-null-assertion": "off",
27
- "typescript/no-throw-literal": "off",
28
26
  "typescript/no-unnecessary-condition": "off",
29
27
  "typescript/no-unnecessary-type-constraint": "off",
30
28
  "typescript/no-unnecessary-type-parameters": "off",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@10stars/config",
3
- "version": "15.2.1",
3
+ "version": "15.2.4",
4
4
  "private": false,
5
5
  "bin": {
6
6
  "config": "./src/index.ts"
@@ -16,6 +16,9 @@
16
16
  "publishConfig": {
17
17
  "access": "public"
18
18
  },
19
+ "scripts": {
20
+ "prepublishOnly": "cd .. && bun run config typecheck && bun run config lint && bun run config --help"
21
+ },
19
22
  "dependencies": {
20
23
  "@10stars/oxlint-plugin-react-hooks": "^1.0.5",
21
24
  "@oxc-node/core": "0.0.35",
package/src/index.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  #!/usr/bin/env bun
2
2
  import { execSync } from "node:child_process"
3
+ import { existsSync } from "node:fs"
3
4
  import fs from "node:fs/promises"
4
5
  import path from "node:path"
5
6
 
@@ -38,13 +39,15 @@ const actions = {
38
39
  info: `Runs husky and links packages`,
39
40
  action: async () => {
40
41
  if (process.env.CI) return
41
- exec(`husky`) // husky is intended only for local development (not in CI)
42
- await setupVSCode(cwd) // create/update .vscode directory with standardized extensions.json and settings.json
43
42
 
43
+ // we must copy it first, because the following steps might have formatting cmds
44
44
  const oxfmtSrc = path.join(new URL("../.oxfmtrc.json", import.meta.url).pathname, ``)
45
45
  const oxfmtDest = path.join(cwd, `.oxfmtrc.json`)
46
46
  await fs.cp(oxfmtSrc, oxfmtDest, { force: true })
47
47
 
48
+ exec(`husky`) // husky is intended only for local development (not in CI)
49
+ await setupVSCode(cwd) // create/update .vscode directory with standardized extensions.json and settings.json
50
+
48
51
  const config = await getConfig()
49
52
  if (config?.linkPackages) await linkPackages(cwd, config.linkPackages)
50
53
  },
package/src/runner.ts CHANGED
@@ -65,8 +65,8 @@ export async function runConcurrently(commands: CommandConfig[]): Promise<void>
65
65
  processes.push({ label: config.label, proc, prefix })
66
66
 
67
67
  // Start piping output (don't await - run concurrently)
68
- pipeOutput(proc.stdout, prefix)
69
- pipeOutput(proc.stderr, prefix)
68
+ void pipeOutput(proc.stdout, prefix)
69
+ void pipeOutput(proc.stderr, prefix)
70
70
  }
71
71
 
72
72
  // Kill all processes and exit
@@ -1,6 +1,6 @@
1
+ import { execSync } from "node:child_process"
1
2
  import fs from "node:fs/promises"
2
3
  import path from "node:path"
3
- import { execSync } from "node:child_process"
4
4
 
5
5
  // Strip JSONC comments while preserving strings (regex matches strings first to skip them)
6
6
  const stripJsoncComments = (jsonc: string): string =>
@@ -14,6 +14,7 @@
14
14
  "checkJs": false, // do not type-check JS files; we don't use JS files in our projects and we don't depend on 3rd party JS files
15
15
  "skipLibCheck": true,
16
16
 
17
+ "types": ["node", "bun"],
17
18
  "lib": ["esnext", "dom"],
18
19
  "module": "esnext",
19
20
  "target": "esnext",