@zenstackhq/language 2.15.1 → 3.0.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,44 +1,63 @@
1
1
  {
2
2
  "name": "@zenstackhq/language",
3
- "version": "2.15.1",
4
- "displayName": "ZenStack modeling language compiler",
5
- "description": "ZenStack modeling language compiler",
6
- "homepage": "https://zenstack.dev",
7
- "publishConfig": {
8
- "directory": "dist",
9
- "linkDirectory": true
10
- },
11
- "author": "ZenStack Team",
3
+ "description": "ZenStack ZModel language specification",
4
+ "version": "3.0.0-alpha.0",
12
5
  "license": "MIT",
13
- "devDependencies": {
14
- "langium-cli": "1.3.1",
15
- "plist2": "^1.1.3"
6
+ "author": "ZenStack Team",
7
+ "files": [
8
+ "dist",
9
+ "res"
10
+ ],
11
+ "type": "module",
12
+ "exports": {
13
+ ".": {
14
+ "import": {
15
+ "types": "./dist/index.d.ts",
16
+ "default": "./dist/index.js"
17
+ },
18
+ "require": {
19
+ "types": "./dist/index.d.cts",
20
+ "default": "./dist/index.cjs"
21
+ }
22
+ },
23
+ "./ast": {
24
+ "import": {
25
+ "types": "./dist/ast.d.ts",
26
+ "default": "./dist/ast.js"
27
+ },
28
+ "require": {
29
+ "types": "./dist/ast.d.cts",
30
+ "default": "./dist/ast.cjs"
31
+ }
32
+ },
33
+ "./package.json": {
34
+ "import": "./package.json",
35
+ "require": "./package.json"
36
+ }
16
37
  },
17
38
  "dependencies": {
18
- "langium": "1.3.1"
39
+ "langium": "~3.3.0",
40
+ "pluralize": "^8.0.0",
41
+ "ts-pattern": "^5.6.0"
19
42
  },
20
- "contributes": {
21
- "languages": [
22
- {
23
- "id": "zmodel",
24
- "extensions": [
25
- ".zmodel"
26
- ]
27
- }
28
- ],
29
- "grammars": [
30
- {
31
- "language": "zmodel",
32
- "scopeName": "source.zmodel",
33
- "path": "./syntaxes/zmodel.tmLanguage.json"
34
- }
35
- ]
43
+ "devDependencies": {
44
+ "@types/node": "^20.0.0",
45
+ "@types/pluralize": "^0.0.33",
46
+ "langium-cli": "~3.3.0",
47
+ "typescript": "~5.1.6"
48
+ },
49
+ "volta": {
50
+ "node": "18.19.1",
51
+ "npm": "10.2.4"
36
52
  },
37
53
  "scripts": {
38
- "clean": "rimraf dist",
39
- "generate": "langium generate && npx ts-node script/generate-plist.ts",
40
- "watch": "concurrently \"langium generate --watch\" \"tsc --watch\"",
54
+ "build": "pnpm langium:generate && tsup-node",
55
+ "watch": "run-p watch:*",
56
+ "watch:ts": "tsup-node --watch",
57
+ "watch:langium": "langium generate --watch",
41
58
  "lint": "eslint src --ext ts",
42
- "build": "pnpm lint --max-warnings=0 && pnpm clean && pnpm generate && tsc && copyfiles -F ./README.md ./LICENSE ./package.json \"syntaxes/**/*\" dist && pnpm pack dist --pack-destination ../../../.build"
59
+ "langium:generate": "langium generate",
60
+ "langium:generate:production": "langium generate --mode=production",
61
+ "pack": "pnpm pack"
43
62
  }
44
63
  }