|
8 | 8 | "email": "vlad@shelf.io",
|
9 | 9 | "url": "https://shelf.io"
|
10 | 10 | },
|
11 |
| - "main": "lib", |
| 11 | + "type": "module", |
| 12 | + "exports": "./lib/index.js", |
12 | 13 | "types": "lib/index.d.ts",
|
13 | 14 | "files": [
|
14 | 15 | "lib"
|
15 | 16 | ],
|
16 | 17 | "scripts": {
|
17 |
| - "build": "rm -rf lib/ && yarn build:types && yarn build:code", |
18 |
| - "build:code": "babel src --out-dir lib --ignore '**/*.test.ts' --extensions '.ts' && find ./lib -name '*.test.d.ts' -delete", |
19 |
| - "build:types": "tsc --emitDeclarationOnly --declaration --isolatedModules false --declarationDir lib", |
| 18 | + "build": "rm -rf lib/ && tsc", |
20 | 19 | "coverage": "jest --coverage",
|
21 | 20 | "lint": "eslint . --ext .js,.ts,.json --fix",
|
22 | 21 | "lint:ci": "eslint . --ext .js,.ts,.json",
|
|
25 | 24 | "type-check": "tsc --noEmit",
|
26 | 25 | "type-check:watch": "npm run type-check -- --watch"
|
27 | 26 | },
|
28 |
| - "husky": { |
29 |
| - "hooks": { |
30 |
| - "pre-commit": "lint-staged" |
31 |
| - } |
32 |
| - }, |
33 | 27 | "lint-staged": {
|
34 |
| - "*.{html,json,md,yml}": [ |
35 |
| - "prettier --write" |
36 |
| - ], |
37 |
| - "*.{js,ts}": [ |
38 |
| - "eslint --fix" |
39 |
| - ] |
40 |
| - }, |
41 |
| - "babel": { |
42 |
| - "extends": "@shelf/babel-config/backend" |
| 28 | + "*.{html,json,md,yml}": "prettier --write", |
| 29 | + "*.{js,ts}": "eslint --fix" |
43 | 30 | },
|
44 | 31 | "prettier": "@shelf/prettier-config",
|
45 | 32 | "dependencies": {
|
46 |
| - "@octokit/rest": "19.0.5", |
| 33 | + "@octokit/rest": "20.1.0", |
47 | 34 | "lodash": "4.17.21"
|
48 | 35 | },
|
49 | 36 | "devDependencies": {
|
50 |
| - "@babel/cli": "7.23.4", |
51 |
| - "@babel/core": "7.23.7", |
52 |
| - "@shelf/babel-config": "1.2.0", |
53 |
| - "@shelf/eslint-config": "2.26.0", |
| 37 | + "@shelf/eslint-config": "3.15.1", |
54 | 38 | "@shelf/prettier-config": "1.0.0",
|
55 |
| - "@shelf/tsconfig": "0.0.9", |
56 |
| - "@types/jest": "29.5.11", |
57 |
| - "@types/lodash": "4.14.202", |
58 |
| - "@types/node": "16", |
| 39 | + "@shelf/tsconfig": "0.1.0", |
| 40 | + "@swc/core": "1.4.14", |
| 41 | + "@swc/jest": "0.2.36", |
| 42 | + "@types/jest": "29.5.12", |
| 43 | + "@types/lodash": "4.17.0", |
| 44 | + "@types/node": "20.12.7", |
59 | 45 | "eslint": "8.56.0",
|
60 |
| - "husky": "8.0.3", |
| 46 | + "husky": "9.0.11", |
61 | 47 | "jest": "29.7.0",
|
62 |
| - "lint-staged": "13.3.0", |
63 |
| - "prettier": "2.8.8", |
64 |
| - "typescript": "5.1.6" |
| 48 | + "lint-staged": "15.2.2", |
| 49 | + "prettier": "3.2.5", |
| 50 | + "ts-jest-resolver": "2.0.1", |
| 51 | + "typescript": "5.4.5" |
65 | 52 | },
|
66 | 53 | "engines": {
|
67 |
| - "node": ">=16" |
| 54 | + "node": ">=18" |
68 | 55 | },
|
69 | 56 | "publishConfig": {
|
70 | 57 | "access": "public"
|
|
0 commit comments