|
2 | 2 | "name": "leetcode-roulette-api",
|
3 | 3 | "version": "0.0.1",
|
4 | 4 | "description": "API library for https://api.leetcoderoulette.com",
|
5 |
| - "main": "index.js", |
| 5 | + "types": "./lib/cjs/types/index.d.ts", |
| 6 | + "main": "./lib/cjs/index.js", |
6 | 7 | "scripts": {
|
| 8 | + "clean": "rm -rf ./lib", |
| 9 | + "build": "npm run clean && npm run build:esm && npm run build:cjs", |
| 10 | + "build:esm": "tsc -p ./configs/tsconfig.esm.json && mv lib/esm/index.js lib/esm/index.mjs", |
| 11 | + "build:cjs": "tsc -p ./configs/tsconfig.cjs.json", |
| 12 | + "prepack": "npm run build", |
7 | 13 | "test": "jest --passWithNoTests",
|
8 | 14 | "test:ci": "jest --coverage"
|
9 | 15 | },
|
10 | 16 | "repository": {
|
11 | 17 | "type": "git",
|
12 | 18 | "url": "git+https://github.com/leetcode-roulette/leetcode-roulette-api.git"
|
13 | 19 | },
|
| 20 | + "exports": { |
| 21 | + ".": { |
| 22 | + "import": { |
| 23 | + "types": "./lib/esm/types/index.d.ts", |
| 24 | + "default": "./lib/esm/index.mjs" |
| 25 | + }, |
| 26 | + "require": { |
| 27 | + "types": "./lib/cjs/types/index.d.ts", |
| 28 | + "default": "./lib/cjs/index.js" |
| 29 | + } |
| 30 | + } |
| 31 | + }, |
| 32 | + "files": [ |
| 33 | + "lib/**/*" |
| 34 | + ], |
14 | 35 | "author": "Leetcode Roulette",
|
15 | 36 | "license": "MIT",
|
16 | 37 | "bugs": {
|
17 | 38 | "url": "https://github.com/leetcode-roulette/leetcode-roulette-api/issues"
|
18 | 39 | },
|
| 40 | + "release": { |
| 41 | + "branches": ["master"] |
| 42 | + }, |
| 43 | + "publishConfig": { |
| 44 | + "access": "public" |
| 45 | + }, |
19 | 46 | "homepage": "https://github.com/leetcode-roulette/leetcode-roulette-api#readme",
|
20 | 47 | "devDependencies": {
|
21 | 48 | "@babel/core": "^7.19.1",
|
|
34 | 61 | },
|
35 | 62 | "dependencies": {
|
36 | 63 | "axios": "^1.1.3"
|
| 64 | + }, |
| 65 | + "engines": { |
| 66 | + "npm": ">=5.5.0", |
| 67 | + "node": ">=9.3.0" |
37 | 68 | }
|
38 | 69 | }
|
0 commit comments