@multiplayer-app/cli 2.0.17 → 2.0.18

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.
@@ -24,7 +24,7 @@ function findBinary() {
24
24
 
25
25
  let dir = path.dirname(fileURLToPath(import.meta.url))
26
26
  while (true) {
27
- const candidate = path.join(dir, 'node_modules', pkgName, 'src', binName)
27
+ const candidate = path.join(dir, 'node_modules', pkgName, 'bin', binName)
28
28
  if (existsSync(candidate)) return candidate
29
29
  const parent = path.dirname(dir)
30
30
  if (parent === dir) break
@@ -32,7 +32,7 @@ function findBinary() {
32
32
  }
33
33
 
34
34
  // Fallback: sibling dist/ for local dev
35
- const devBin = path.join(path.dirname(fileURLToPath(import.meta.url)), '..', 'dist', `${platform}-${arch}`, 'src', binName)
35
+ const devBin = path.join(path.dirname(fileURLToPath(import.meta.url)), '..', 'dist', `${platform}-${arch}`, 'bin', binName)
36
36
  if (existsSync(devBin)) return devBin
37
37
 
38
38
  return null
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@multiplayer-app/cli",
3
- "version": "2.0.17",
3
+ "version": "2.0.18",
4
4
  "description": "Multiplayer CLI",
5
5
  "type": "module",
6
6
  "bin": {
@@ -14,12 +14,12 @@
14
14
  "lint": "eslint 'src/**/*.ts' --config eslint.config.js"
15
15
  },
16
16
  "optionalDependencies": {
17
- "@multiplayer-app/cli-darwin-arm64": "2.0.17",
18
- "@multiplayer-app/cli-darwin-x64": "2.0.17",
19
- "@multiplayer-app/cli-linux-x64": "2.0.17",
20
- "@multiplayer-app/cli-linux-arm64": "2.0.17",
21
- "@multiplayer-app/cli-windows-x64": "2.0.17",
22
- "@multiplayer-app/cli-windows-arm64": "2.0.17"
17
+ "@multiplayer-app/cli-darwin-arm64": "2.0.18",
18
+ "@multiplayer-app/cli-darwin-x64": "2.0.18",
19
+ "@multiplayer-app/cli-linux-x64": "2.0.18",
20
+ "@multiplayer-app/cli-linux-arm64": "2.0.18",
21
+ "@multiplayer-app/cli-windows-x64": "2.0.18",
22
+ "@multiplayer-app/cli-windows-arm64": "2.0.18"
23
23
  },
24
24
  "license": "MIT",
25
25
  "repository": {
package/eslint.config.js DELETED
@@ -1,135 +0,0 @@
1
- import tsPlugin from '@typescript-eslint/eslint-plugin'
2
- import tsParser from '@typescript-eslint/parser'
3
-
4
- // Equivalent to env: { es6: true, node: true, jest: true, mocha: true }
5
- const envGlobals = {
6
- // Node.js
7
- __dirname: 'readonly',
8
- __filename: 'readonly',
9
- Buffer: 'readonly',
10
- clearImmediate: 'readonly',
11
- clearInterval: 'readonly',
12
- clearTimeout: 'readonly',
13
- console: 'readonly',
14
- exports: 'writable',
15
- global: 'readonly',
16
- module: 'writable',
17
- process: 'readonly',
18
- require: 'readonly',
19
- setImmediate: 'readonly',
20
- setInterval: 'readonly',
21
- setTimeout: 'readonly',
22
- URL: 'readonly',
23
- URLSearchParams: 'readonly',
24
- // Jest
25
- afterAll: 'readonly',
26
- afterEach: 'readonly',
27
- beforeAll: 'readonly',
28
- beforeEach: 'readonly',
29
- describe: 'readonly',
30
- expect: 'readonly',
31
- fit: 'readonly',
32
- it: 'readonly',
33
- jest: 'readonly',
34
- test: 'readonly',
35
- xdescribe: 'readonly',
36
- xit: 'readonly',
37
- xtest: 'readonly',
38
- // Mocha
39
- after: 'readonly',
40
- before: 'readonly',
41
- context: 'readonly',
42
- mocha: 'readonly',
43
- run: 'readonly',
44
- specify: 'readonly',
45
- suite: 'readonly',
46
- suiteSetup: 'readonly',
47
- suiteTeardown: 'readonly',
48
- xcontext: 'readonly',
49
- xspecify: 'readonly',
50
- }
51
-
52
- export default [
53
- {
54
- ignores: [
55
- 'package.json',
56
- 'node_modules/**',
57
- 'clients/**',
58
- 'libs/multiplayer-blocknote-lib/**',
59
- '**/dist/**',
60
- ],
61
- },
62
- {
63
- files: ['**/*.ts', '**/*.tsx', '**/*.mts', '**/*.cts'],
64
- languageOptions: {
65
- parser: tsParser,
66
- parserOptions: {
67
- ecmaVersion: 'latest',
68
- sourceType: 'module',
69
- },
70
- globals: envGlobals,
71
- },
72
- plugins: {
73
- '@typescript-eslint': tsPlugin,
74
- },
75
- rules: {
76
- // plugin:@typescript-eslint/eslint-recommended — disables ESLint rules
77
- // that TypeScript handles natively, enables TS-aware replacements
78
- 'constructor-super': 'off',
79
- 'getter-return': 'off',
80
- 'no-const-assign': 'off',
81
- 'no-dupe-args': 'off',
82
- 'no-dupe-class-members': 'off',
83
- 'no-dupe-keys': 'off',
84
- 'no-func-assign': 'off',
85
- 'no-import-assign': 'off',
86
- 'no-new-symbol': 'off',
87
- 'no-obj-calls': 'off',
88
- 'no-redeclare': 'off',
89
- 'no-setter-return': 'off',
90
- 'no-this-before-super': 'off',
91
- 'no-undef': 'off',
92
- 'no-unreachable': 'off',
93
- 'no-unsafe-negation': 'off',
94
- 'no-var': 'error',
95
- 'prefer-rest-params': 'error',
96
- 'prefer-spread': 'error',
97
- // plugin:@typescript-eslint/recommended
98
- '@typescript-eslint/ban-ts-comment': 'error',
99
- 'no-array-constructor': 'off',
100
- '@typescript-eslint/no-array-constructor': 'error',
101
- '@typescript-eslint/no-duplicate-enum-values': 'error',
102
- '@typescript-eslint/no-extra-non-null-assertion': 'error',
103
- '@typescript-eslint/no-misused-new': 'error',
104
- '@typescript-eslint/no-non-null-asserted-optional-chain': 'error',
105
- '@typescript-eslint/no-this-alias': 'error',
106
- '@typescript-eslint/no-unnecessary-type-constraint': 'error',
107
- '@typescript-eslint/no-unsafe-declaration-merging': 'error',
108
- '@typescript-eslint/no-var-requires': 'error',
109
- '@typescript-eslint/prefer-as-const': 'error',
110
- '@typescript-eslint/triple-slash-reference': 'error',
111
- // Custom rules (from .eslintrc)
112
- 'prefer-const': 'error',
113
- '@typescript-eslint/no-namespace': 0,
114
- '@typescript-eslint/prefer-namespace-keyword': 0,
115
- '@typescript-eslint/no-empty-function': 0,
116
- '@typescript-eslint/no-unused-vars': 0,
117
- '@typescript-eslint/no-explicit-any': 0,
118
- 'block-spacing': ['error', 'always'],
119
- 'keyword-spacing': ['error', { before: true, after: true }],
120
- 'indent': ['error', 2, { SwitchCase: 1 }],
121
- 'linebreak-style': ['error', 'unix'],
122
- 'quotes': ['error', 'single'],
123
- 'semi': ['error', 'never'],
124
- 'comma-dangle': ['error', 'always-multiline'],
125
- 'no-console': 1,
126
- 'object-curly-spacing': ['error', 'always'],
127
- 'space-in-parens': ['error', 'never'],
128
- 'array-bracket-spacing': ['error', 'never'],
129
- 'no-trailing-spaces': 'error',
130
- 'no-multi-spaces': 'error',
131
- 'no-lonely-if': 'error',
132
- 'key-spacing': 'error',
133
- },
134
- },
135
- ]