|
3 | 3 | "version": "1.0.2",
|
4 | 4 | "description": "Convert Base64 to Blob/File and Blob/File to Base64.",
|
5 | 5 | "author": "Mark <[email protected]>",
|
6 |
| - "main": "cjs/index.js", |
7 |
| - "module": "esm/index.js", |
8 |
| - "exports": { |
9 |
| - "import": "./esm/index.js", |
10 |
| - "require": "./cjs/index.js" |
11 |
| - }, |
| 6 | + "main": "./cjs/index.js", |
| 7 | + "types": "./cjs/index.d.ts", |
12 | 8 | "scripts": {
|
13 |
| - "build": "npm run build:cjs && npm run build:esm", |
14 |
| - "build:cjs": "tsc", |
15 |
| - "build:esm": "tsc --module nodenext --outDir esm", |
| 9 | + "build": "tsc", |
16 | 10 | "build:watch": "tsc --watch",
|
17 |
| - "clean": "rm -rf cjs coverage docs esm", |
| 11 | + "clean": "rm -rf cjs coverage docs", |
18 | 12 | "docs": "typedoc",
|
19 | 13 | "lint": "eslint --ignore-path .gitignore --ext .js,.mjs,.ts .",
|
20 | 14 | "lint:fix": "npm run lint -- --fix",
|
|
24 | 18 | "prepublishOnly": "pinst --disable && npm run lint && npm run lint:tsc && npm run test:ci && npm run test:esm && npm run clean && npm run build",
|
25 | 19 | "test": "jest",
|
26 | 20 | "test:ci": "CI=true jest --ci --colors --coverage",
|
27 |
| - "test:esm": "npm run build:esm && node --test src", |
| 21 | + "test:esm": "npm run build && node --test src", |
28 | 22 | "test:watch": "jest --watch"
|
29 | 23 | },
|
30 | 24 | "repository": {
|
|
68 | 62 | },
|
69 | 63 | "files": [
|
70 | 64 | "cjs/",
|
71 |
| - "esm/" |
| 65 | + "src/" |
72 | 66 | ],
|
73 | 67 | "engines": {
|
74 | 68 | "node": ">=18"
|
|
0 commit comments