multermate 2.2.0 → 2.2.1

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.
@@ -1 +1,3 @@
1
- '{"type": "module"}'
1
+ {
2
+ "type": "module"
3
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "multermate",
3
- "version": "2.2.0",
3
+ "version": "2.2.1",
4
4
  "description": "A powerful and flexible file upload utility built on top of Multer with TypeScript support, comprehensive file type handling, custom error classes, and universal JavaScript module compatibility",
5
5
  "main": "index.js",
6
6
  "module": "index.mjs",
@@ -26,7 +26,7 @@
26
26
  "scripts": {
27
27
  "build": "npm run clean && npm run build:cjs && npm run build:esm && npm run build:types && npm run build:entries",
28
28
  "build:cjs": "tsc --module commonjs --outDir dist/cjs --target ES2018",
29
- "build:esm": "tsc --module ES2020 --outDir dist/esm --target ES2020 && echo '{\"type\": \"module\"}' > dist/esm/package.json",
29
+ "build:esm": "tsc --module ES2020 --outDir dist/esm --target ES2020 && node -e \"require('fs').writeFileSync('dist/esm/package.json', JSON.stringify({ type: 'module' }, null, 2))\"",
30
30
  "build:types": "tsc --emitDeclarationOnly --outDir types",
31
31
  "build:entries": "node -e \"console.log('Build entries completed')\"",
32
32
  "clean": "node -e \"const fs=require('fs'); ['dist', 'types'].forEach(dir => { try { fs.rmSync(dir, {recursive: true, force: true}); } catch(e){} })\"",