@movable/ui 3.16.0-eslint.1 → 3.16.0-eslint.2
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 +2 -3
- package/scripts/postinstall.js +0 -31
package/package.json
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@movable/ui",
|
|
3
|
-
"version": "3.16.0-eslint.
|
|
3
|
+
"version": "3.16.0-eslint.2",
|
|
4
4
|
"description": "Movable Ink's shared MUI components and MUI theme for our vite applications",
|
|
5
5
|
"module": "lib/index.mjs",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
7
7
|
"files": [
|
|
8
8
|
"lib",
|
|
9
|
-
"lib/eslint-plugin"
|
|
10
|
-
"scripts"
|
|
9
|
+
"lib/eslint-plugin"
|
|
11
10
|
],
|
|
12
11
|
"exports": {
|
|
13
12
|
".": {
|
package/scripts/postinstall.js
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
/**
|
|
3
|
-
* Creates a symlink for ESLint plugin resolution.
|
|
4
|
-
*
|
|
5
|
-
* ESLint legacy config resolves `plugins: ["@movable/ui"]` to `@movable/eslint-plugin-ui`.
|
|
6
|
-
* This script creates that symlink so the plugin works out of the box.
|
|
7
|
-
*
|
|
8
|
-
* Only runs when installed as a dependency (inside node_modules), not in the source repo.
|
|
9
|
-
*/
|
|
10
|
-
const fs = require('fs');
|
|
11
|
-
const path = require('path');
|
|
12
|
-
|
|
13
|
-
// Only run when installed as a dependency (path contains node_modules)
|
|
14
|
-
if (!__dirname.includes('node_modules')) {
|
|
15
|
-
process.exit(0);
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
const source = path.resolve(__dirname, '..', 'lib', 'eslint-plugin');
|
|
19
|
-
const target = path.resolve(__dirname, '..', '..', 'eslint-plugin-ui');
|
|
20
|
-
|
|
21
|
-
// Only create symlink if:
|
|
22
|
-
// 1. The source (built eslint-plugin) exists
|
|
23
|
-
// 2. The target doesn't already exist
|
|
24
|
-
if (fs.existsSync(source) && !fs.existsSync(target)) {
|
|
25
|
-
try {
|
|
26
|
-
fs.symlinkSync(source, target, 'dir');
|
|
27
|
-
} catch (err) {
|
|
28
|
-
// Silently fail - symlink creation may fail in some environments
|
|
29
|
-
// The plugin will still work with flat config via direct require
|
|
30
|
-
}
|
|
31
|
-
}
|