makepack 1.7.9 → 1.7.11

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "makepack",
3
- "version": "1.7.9",
3
+ "version": "1.7.11",
4
4
  "type": "module",
5
5
  "description": "A CLI tool to create, build, and manage JavaScript, TypeScript, React, and React-TypeScript libraries for npm projects.",
6
6
  "categories": [
@@ -7,7 +7,7 @@ import dts from "rollup-plugin-dts";
7
7
  import json from '@rollup/plugin-json';
8
8
  import terser from "@rollup/plugin-terser";
9
9
 
10
- async function bind(args, spinner) {
10
+ async function bundler(args, spinner) {
11
11
  const isTs = args.entry.endsWith('.ts') || args.entry.endsWith('.tsx')
12
12
 
13
13
  const config = {
@@ -22,22 +22,21 @@ async function bind(args, spinner) {
22
22
  browser: false
23
23
  }),
24
24
  commonjs(),
25
- isTs ? typescript({
25
+ typescript({
26
26
  tsconfig: false,
27
27
  target: "ES2017",
28
28
  module: "ESNext",
29
29
  jsx: "react-jsx",
30
- moduleResolution: "node",
30
+ moduleResolution: "node", // ✅ Correct and lowercase
31
31
  esModuleInterop: true,
32
- skipLibCheck: true,
32
+ skipLibCheck: false,
33
33
  strict: true,
34
34
  importHelpers: true,
35
35
  forceConsistentCasingInFileNames: true,
36
36
  declaration: false,
37
37
  emitDeclarationOnly: false,
38
- include: ["src/**/*.{ts,tsx}"],
39
- exclude: ["node_modules", ".mpack"]
40
- }) : null,
38
+ rootDir: path.resolve(process.cwd(), args.rootdir),
39
+ }),
41
40
  args.minify ? terser() : null,
42
41
  ]
43
42
  };
@@ -48,7 +47,8 @@ async function bind(args, spinner) {
48
47
  format: "esm",
49
48
  sourcemap: args.sourcemap,
50
49
  compact: true,
51
- strict: true
50
+ strict: true,
51
+ exports: "named"
52
52
  };
53
53
  if (!args.bundle) {
54
54
  esm.preserveModules = true
@@ -112,4 +112,4 @@ async function bind(args, spinner) {
112
112
  }
113
113
  }
114
114
 
115
- export default bind;
115
+ export default bundler;