@plylang/language-server 0.0.0 → 1.1.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.
@@ -0,0 +1,18 @@
1
+ #!/usr/bin/env node
2
+ // Resolve starts here, in this package, so Node sees the server's optional
3
+ // platform package. The shared lookup lives with the compiler.
4
+
5
+ import { createRequire } from "node:module";
6
+ import { run } from "@plylang/plylang/bin/native.js";
7
+
8
+ const require = createRequire(import.meta.url);
9
+
10
+ run("plylang-ls", {
11
+ resolvePackage(name) {
12
+ try {
13
+ return require.resolve(`${name}/package.json`);
14
+ } catch {
15
+ return null;
16
+ }
17
+ },
18
+ });
package/package.json CHANGED
@@ -1,17 +1,42 @@
1
1
  {
2
- "version": "0.0.0",
2
+ "name": "@plylang/language-server",
3
+ "version": "1.1.0",
4
+ "description": "Ply language server",
3
5
  "license": "MIT",
4
6
  "author": "Algosail",
7
+ "type": "module",
5
8
  "repository": {
6
9
  "type": "git",
7
10
  "url": "git+https://github.com/algosail/plylang.git"
8
11
  },
12
+ "homepage": "https://github.com/algosail/plylang#readme",
13
+ "bugs": "https://github.com/algosail/plylang/issues",
14
+ "keywords": [
15
+ "ply",
16
+ "plylang",
17
+ "language-server"
18
+ ],
19
+ "engines": {
20
+ "node": ">=24"
21
+ },
9
22
  "publishConfig": {
10
23
  "access": "public"
11
24
  },
12
- "name": "@plylang/language-server",
13
- "description": "Placeholder so @plylang/language-server can receive a trusted publisher. It does not install plylang-ls.",
25
+ "bin": {
26
+ "plylang-ls": "bin/plylang-ls.js"
27
+ },
14
28
  "files": [
15
- "README.md"
16
- ]
29
+ "bin/plylang-ls.js"
30
+ ],
31
+ "dependencies": {
32
+ "@plylang/plylang": "1.1.0"
33
+ },
34
+ "optionalDependencies": {
35
+ "@plylang/language-server-darwin-arm64": "1.1.0",
36
+ "@plylang/language-server-darwin-x64": "1.1.0",
37
+ "@plylang/language-server-linux-arm64": "1.1.0",
38
+ "@plylang/language-server-linux-x64": "1.1.0",
39
+ "@plylang/language-server-win32-arm64": "1.1.0",
40
+ "@plylang/language-server-win32-x64": "1.1.0"
41
+ }
17
42
  }
package/README.md DELETED
@@ -1,5 +0,0 @@
1
- # @plylang/language-server
2
-
3
- Version 0.0.0 is an empty package. It exists so npm Trusted Publishing can be configured.
4
- It does not install the `plylang-ls` command.
5
- The language server is published later, at the same version as `@plylang/plylang`, by `.github/workflows/publish.yml`.