|
3 | 3 | "version": "0.1.2", |
4 | 4 | "description": "CoCalc api client - use cocalc from nodejs", |
5 | 5 | "main": "./dist/index.js", |
| 6 | + "exports": { |
| 7 | + ".": { |
| 8 | + "types": "./dist/index.d.ts", |
| 9 | + "import": "./dist-esm/index.js", |
| 10 | + "default": "./dist/index.js" |
| 11 | + }, |
| 12 | + "./*": { |
| 13 | + "types": "./dist/*.d.ts", |
| 14 | + "import": "./dist-esm/*.js", |
| 15 | + "default": "./dist/*.js" |
| 16 | + }, |
| 17 | + "./src/*": { |
| 18 | + "types": "./dist/src/*.d.ts", |
| 19 | + "import": "./dist-esm/src/*.js", |
| 20 | + "default": "./dist/src/*.js" |
| 21 | + } |
| 22 | + }, |
| 23 | + "files": ["dist/**", "dist-esm/**", "bin/**", "README.md", "package.json"], |
6 | 24 | "scripts": { |
7 | 25 | "preinstall": "npx only-allow pnpm", |
8 | | - "build": "../node_modules/.bin/tsc --build", |
| 26 | + "build": "pnpm exec tsc --build && pnpm exec tsc -p tsconfig-esm.json && echo '{\"type\":\"module\"}' > dist-esm/package.json", |
| 27 | + "clean": "rm -rf node_modules dist dist-esm", |
9 | 28 | "depcheck": "pnpx depcheck --ignores @cocalc/api-client " |
10 | 29 | }, |
11 | | - "files": ["dist/**", "bin/**", "README.md", "package.json"], |
12 | 30 | "author": "SageMath, Inc.", |
13 | 31 | "keywords": ["cocalc", "jupyter"], |
14 | 32 | "license": "SEE LICENSE.md", |
|
0 commit comments