|
18 | 18 | "email": "vlad@shelf.io", |
19 | 19 | "url": "https://shelf.io" |
20 | 20 | }, |
21 | | - "main": "lib", |
| 21 | + "sideEffects": false, |
| 22 | + "type": "module", |
| 23 | + "exports": "./lib/index.js", |
| 24 | + "module": "./lib/index.js", |
22 | 25 | "types": "lib/index.d.ts", |
23 | 26 | "files": [ |
24 | 27 | "lib" |
25 | 28 | ], |
26 | 29 | "scripts": { |
27 | | - "benchmark": "babel benchmark.ts | node", |
28 | | - "build": "rm -rf lib/ && yarn build:types && babel src --out-dir lib --ignore '**/*.test.ts' --extensions '.ts'", |
29 | | - "build:types": "tsc --emitDeclarationOnly --declaration --isolatedModules false --declarationDir lib", |
| 30 | + "benchmark": "tsx benchmark.ts", |
| 31 | + "build": "rm -rf lib/ && tsc", |
30 | 32 | "coverage": "jest --coverage", |
31 | 33 | "lint": "yarn lint:ci --fix", |
32 | 34 | "lint:ci": "eslint . --quiet", |
33 | | - "prepack": "yarn build", |
34 | 35 | "test": "jest src", |
35 | 36 | "type-check": "tsc --noEmit", |
36 | 37 | "type-check:watch": "npm run type-check -- --watch" |
|
43 | 44 | "eslint --fix" |
44 | 45 | ] |
45 | 46 | }, |
46 | | - "babel": { |
47 | | - "extends": "@shelf/babel-config/backend" |
48 | | - }, |
49 | | - "jest": { |
50 | | - "testEnvironment": "node" |
| 47 | + "resolutions": { |
| 48 | + "strip-ansi": "6.0.1", |
| 49 | + "wrap-ansi": "7.0.0", |
| 50 | + "string-width": "4.2.3" |
51 | 51 | }, |
52 | 52 | "dependencies": { |
53 | 53 | "runes": "0.4.3", |
54 | | - "string-length": "4.0.2" |
| 54 | + "string-length": "6.0.0" |
55 | 55 | }, |
56 | 56 | "devDependencies": { |
57 | | - "@babel/cli": "7.26.4", |
58 | | - "@babel/core": "7.26.0", |
59 | | - "@shelf/babel-config": "3.0.0", |
60 | 57 | "@shelf/eslint-config": "4.4.0", |
61 | 58 | "@shelf/tsconfig": "0.1.0", |
| 59 | + "@swc/core": "1.10.7", |
| 60 | + "@swc/jest": "0.2.37", |
62 | 61 | "@types/benchmark": "2.1.5", |
63 | 62 | "@types/jest": "29.5.14", |
64 | 63 | "@types/node": "18", |
|
70 | 69 | "jest": "29.7.0", |
71 | 70 | "lint-staged": "15.3.0", |
72 | 71 | "prettier": "3.4.2", |
| 72 | + "ts-jest-resolver": "2.0.1", |
| 73 | + "tsx": "4.19.2", |
73 | 74 | "typescript": "5.7.3" |
74 | 75 | }, |
75 | 76 | "engines": { |
|
0 commit comments