|
1 | 1 | { |
2 | 2 | "name": "monaco-sql-languages", |
3 | | - "version": "1.2.0", |
| 3 | + "version": "1.2.1-beta.2", |
4 | 4 | "description": "SQL languages for the Monaco Editor, based on monaco-languages.", |
5 | 5 | "scripts": { |
6 | 6 | "prepublishOnly": "npm run build", |
7 | 7 | "build": "rm -rf ./esm && tsc -p ./tsconfig.esm.json", |
| 8 | + "build:dev": "rm -rf ./esm-dev && tsc -p ./tsconfig.esm.json --outDir esm-dev", |
8 | 9 | "build-amd": "rm -rf ./out && tsc -p ./tsconfig.amd.json", |
9 | 10 | "watch-esm": "tsc -p ./tsconfig.esm.json --watch", |
10 | 11 | "test": "npm run build-amd && mocha ./test/all.js", |
11 | | - "dev": "node --max_old_space_size=4092 & cd website && npm run dev", |
| 12 | + "dev": "npm run build:dev && node --max_old_space_size=4092 & cd website && npm run dev", |
12 | 13 | "prod": "rm -rf ./docs && node --max_old_space_size=4092 & cd website && npm run build", |
13 | 14 | "deploy": "npm run build && npm run prod && gh-pages -d docs -r git@github.com:DTStack/monaco-sql-languages.git", |
14 | 15 | "format": "prettier --write .", |
|
21 | 22 | "main": "esm/main.js", |
22 | 23 | "module": "esm/main.js", |
23 | 24 | "types": "esm/main.d.ts", |
| 25 | + "exports": { |
| 26 | + ".": { |
| 27 | + "types": "./esm/main.d.ts", |
| 28 | + "default": "./esm/main.js" |
| 29 | + }, |
| 30 | + "./format": { |
| 31 | + "types": "./esm/format.entry.d.ts", |
| 32 | + "default": "./esm/format.entry.js" |
| 33 | + }, |
| 34 | + "./esm/*": "./esm/*" |
| 35 | + }, |
24 | 36 | "files": [ |
25 | 37 | "esm" |
26 | 38 | ], |
|
58 | 70 | "mocha": "^11.7.4", |
59 | 71 | "monaco-editor": "0.54.0", |
60 | 72 | "prettier": "^3.3.3", |
| 73 | + "sql-formatter": "^15.8.2", |
61 | 74 | "pretty-quick": "^4.0.0", |
62 | 75 | "requirejs": "^2.3.6", |
63 | 76 | "simple-git-hooks": "^2.11.1", |
|
68 | 81 | "pre-commit": "npx pretty-quick --staged" |
69 | 82 | }, |
70 | 83 | "peerDependencies": { |
71 | | - "monaco-editor": ">=0.37.1" |
| 84 | + "monaco-editor": ">=0.37.1", |
| 85 | + "sql-formatter": ">=10.7.2" |
| 86 | + }, |
| 87 | + "peerDependenciesMeta": { |
| 88 | + "sql-formatter": { |
| 89 | + "optional": true |
| 90 | + } |
72 | 91 | }, |
73 | 92 | "engines": { |
74 | 93 | "node": ">=18" |
|
0 commit comments