@hydranium/langium 1.0.0-next.176 → 1.0.0-next.179

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.
Files changed (1) hide show
  1. package/package.json +17 -17
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hydranium/langium",
3
- "version": "1.0.0-next.176",
3
+ "version": "1.0.0-next.179",
4
4
  "description": "Augmented re-export of the Langium API for the hydranium framework: the single chokepoint where hydranium pins the Langium version and layers its type/namespace augmentations. ~99% passthrough today.",
5
5
  "keywords": [
6
6
  "hydranium",
@@ -12,20 +12,27 @@
12
12
  "bugs": {
13
13
  "url": "https://github.com/eclipse-emfcloud/hydranium/issues"
14
14
  },
15
+ "license": "MIT",
16
+ "author": {
17
+ "name": "Hydranium Team"
18
+ },
15
19
  "repository": {
16
20
  "type": "git",
17
21
  "url": "https://github.com/eclipse-emfcloud/hydranium.git",
18
22
  "directory": "packages/langium"
19
23
  },
20
- "license": "MIT",
21
- "author": {
22
- "name": "Hydranium Team"
23
- },
24
+ "files": [
25
+ "lib",
26
+ "src",
27
+ "!lib/**/*.tsbuildinfo"
28
+ ],
29
+ "type": "module",
24
30
  "sideEffects": [
25
31
  "./lib/index.js",
26
32
  "./lib/augmentations/*.js"
27
33
  ],
28
- "type": "module",
34
+ "main": "lib/index.js",
35
+ "types": "lib/index.d.ts",
29
36
  "exports": {
30
37
  ".": {
31
38
  "types": "./lib/index.d.ts",
@@ -56,13 +63,9 @@
56
63
  "default": "./lib/test.js"
57
64
  }
58
65
  },
59
- "main": "lib/index.js",
60
- "types": "lib/index.d.ts",
61
- "files": [
62
- "lib",
63
- "src",
64
- "!lib/**/*.tsbuildinfo"
65
- ],
66
+ "publishConfig": {
67
+ "access": "public"
68
+ },
66
69
  "scripts": {
67
70
  "build": "tsc -b",
68
71
  "clean": "rimraf lib tsconfig.tsbuildinfo",
@@ -77,14 +80,11 @@
77
80
  },
78
81
  "devDependencies": {
79
82
  "rimraf": "^5.0.0",
80
- "typescript": "^5.8.0"
83
+ "typescript": "^7.0.2"
81
84
  },
82
85
  "engines": {
83
86
  "node": ">=22.13"
84
87
  },
85
- "publishConfig": {
86
- "access": "public"
87
- },
88
88
  "//prepack": "The publish guard, and it deliberately is NOT a `prepare`: npm runs a workspace `prepare` BEFORE the root `postinstall` that applies patches/vscode-jsonrpc+9.0.1.patch, so building there fails on a cold clone and npm rolls the entire install back. `prepack` runs only when a tarball is made (`npm pack`, `npm publish`) and never on install, so it cannot break the install it has no business touching. It FAILS rather than rebuilds, because the rebuild is exactly the part that ordering defeats. What it defends against: `files` lists `lib`, `lib` is gitignored, and a `files` entry matching nothing is skipped SILENTLY — so `npm publish` from an unbuilt tree emits a tarball of `src` and nothing else, with no error.",
89
89
  "//sideEffects": "NOT `false`, and the two entries are load-bearing. `augmentations/uri-utils.js` mutates the runtime `UriUtils` object it imports from `langium`, and `index.js` is the only module that loads it — everything else there is `export * from 'langium'`. Declared side-effect-free, a bundler rewrites an import of any symbol from this package straight through to `langium` and skips `index.js` entirely, so `UriUtils.toUri` / `.isAncestorOrEqual` are simply absent at runtime. Nothing fails at build time: the augmentation is a type-level `declare module` merge, so the call still typechecks. `./lsp` and `./node` are pure passthroughs of the upstream subpaths and deliberately not listed."
90
90
  }