@hansevision/eslint-config 1.0.0 → 1.0.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/README.md CHANGED
@@ -93,15 +93,3 @@ npm run dev
93
93
  # Lint the source
94
94
  npm run lint
95
95
  ```
96
-
97
- ## Publishing
98
-
99
- Update the package name in `package.json` (replace `@hansevision` with your npm scope or organization), then:
100
-
101
- ```bash
102
- npm publish --access public
103
- ```
104
-
105
- ## License
106
-
107
- UNLICENSED — proprietary, all rights reserved.
package/dist/index.cjs CHANGED
@@ -1,7 +1,5 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
-
4
- // Re-export from ESM build via dynamic import wrapper
5
- // For CJS consumers, we use a synchronous approach:
6
2
  const mod = require("./index.js");
7
- module.exports = mod;
3
+ // Export the config object directly so ESLint v8 (.eslintrc) can consume it
4
+ const config = mod.default !== undefined ? mod.default : mod.base;
5
+ module.exports = config;
package/package.json CHANGED
@@ -1,11 +1,10 @@
1
1
  {
2
2
  "name": "@hansevision/eslint-config",
3
3
  "author": "HanseVision",
4
- "version": "1.0.0",
4
+ "version": "1.0.2",
5
5
  "description": "Shareable ESLint configuration with TypeScript support",
6
6
  "keywords": [],
7
7
  "license": "UNLICENSED",
8
- "type": "module",
9
8
  "main": "./dist/index.cjs",
10
9
  "module": "./dist/index.js",
11
10
  "types": "./dist/index.d.ts",
@@ -20,7 +19,7 @@
20
19
  "dist"
21
20
  ],
22
21
  "scripts": {
23
- "build": "tsc --project tsconfig.build.json && node scripts/build-cjs.js",
22
+ "build": "tsc --project tsconfig.build.json && node scripts/build-cjs.mjs",
24
23
  "dev": "tsc --watch --project tsconfig.build.json",
25
24
  "lint": "npm run build && eslint src --ext .ts",
26
25
  "prepublishOnly": "npm run build"