@xylabs/lodash 2.10.3 → 2.10.5

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
@@ -15,11 +15,11 @@
15
15
  "exports": {
16
16
  ".": {
17
17
  "require": {
18
- "types": "./dist/cjsIndex.d.ts",
18
+ "types": "./types/cjsIndex.d.ts",
19
19
  "default": "./dist/cjsIndex.js"
20
20
  },
21
21
  "import": {
22
- "types": "./dist/esmIndex.d.mts",
22
+ "types": "./types/esmIndex.d.mts",
23
23
  "default": "./dist/esmIndex.mjs"
24
24
  }
25
25
  },
@@ -44,6 +44,10 @@
44
44
  "typescript",
45
45
  "esm"
46
46
  ],
47
+ "dependencies": {
48
+ "@types/lodash": "^4.14.198",
49
+ "@types/lodash-es": "^4.17.9"
50
+ },
47
51
  "optionalDependencies": {
48
52
  "lodash": "^4.17.21",
49
53
  "lodash-es": "^4.17.21"
@@ -65,5 +69,6 @@
65
69
  "url": "https://github.com/xylabs/sdk-js.git"
66
70
  },
67
71
  "sideEffects": false,
68
- "version": "2.10.3"
72
+ "types": "./types/esmIndex.d.mts",
73
+ "version": "2.10.5"
69
74
  }
package/src/esmIndex.ts CHANGED
@@ -1,2 +1,5 @@
1
- // eslint-disable-next-line no-restricted-imports
1
+ import * as lodash from 'lodash-es'
2
2
  export * from 'lodash-es'
3
+
4
+ // eslint-disable-next-line import/no-default-export
5
+ export default lodash
package/tsup.config.ts CHANGED
@@ -5,9 +5,6 @@ export default defineConfig({
5
5
  bundle: true,
6
6
  cjsInterop: true,
7
7
  clean: true,
8
- dts: {
9
- entry: ['src/cjsIndex.ts', 'src/esmIndex.ts'],
10
- },
11
8
  entry: ['src/cjsIndex.ts', 'src/esmIndex.ts'],
12
9
  format: ['cjs', 'esm'],
13
10
  sourcemap: true,
@@ -0,0 +1,3 @@
1
+ // eslint-disable-next-line no-restricted-imports
2
+ import lodash from 'lodash'
3
+ export = lodash
@@ -0,0 +1,2 @@
1
+ import * as lodash from 'lodash-es'
2
+ export = lodash
@@ -1,2 +0,0 @@
1
- import lodash from 'lodash';
2
- export { default } from 'lodash';
@@ -1,2 +0,0 @@
1
- import lodash from 'lodash';
2
- export { default } from 'lodash';
@@ -1 +0,0 @@
1
- export * from 'lodash-es';
@@ -1 +0,0 @@
1
- export * from 'lodash-es';