Skip to content

Commit e4ecf3b

Browse files
committed
Make the directory structures for ESM, UMD, and CJS the same
- Bump to 2.0.0, since this is a breaking change - Do not compile the test code explicitly; it's compiled through ts-node in the background - Also remove executable from random files that shouldn't be executable Fixes #1124 Signed-off-by: David Thompson <[email protected]>
1 parent 3821411 commit e4ecf3b

File tree

6 files changed

+17
-10
lines changed

6 files changed

+17
-10
lines changed

README.md

100755100644
File mode changed.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "yaml-language-server",
33
"description": "YAML language server",
4-
"version": "1.19.0",
4+
"version": "2.0.0",
55
"author": "Red Hat",
66
"license": "MIT",
77
"contributors": [
@@ -16,7 +16,7 @@
1616
"bin": {
1717
"yaml-language-server": "bin/yaml-language-server"
1818
},
19-
"main": "./out/server/src/index.js",
19+
"main": "./lib/cjs/index.js",
2020
"l10n": "./l10n",
2121
"keywords": [
2222
"yaml",

src/yamlServerInit.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ export class YAMLServerInit {
5959

6060
public async setupl10nBundle(params: InitializeParams): Promise<void> {
6161
const __dirname = path.dirname(__filename);
62-
const l10nPath: string = params.initializationOptions?.l10nPath || path.join(__dirname, '../../../l10n');
62+
const l10nPath: string = params.initializationOptions?.l10nPath || path.join(__dirname, '../../l10n');
6363
const locale: string = params.locale || 'en';
6464
if (l10nPath) {
6565
const bundleFile = !fs.existsSync(path.join(l10nPath, `bundle.l10n.${locale}.json`))

tsconfig.esm.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
},
99
"exclude": [
1010
"node_modules",
11-
"out",
1211
"lib",
1312
"test"
1413
]

tsconfig.json

100755100644
Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,24 @@
33
"alwaysStrict": true,
44
"declaration": true,
55
"forceConsistentCasingInFileNames": true,
6-
"lib": ["es2020", "WebWorker"],
6+
"lib": [
7+
"es2020",
8+
"WebWorker"
9+
],
710
"module": "commonjs",
811
"moduleResolution": "node",
9-
"outDir": "./out/server",
12+
"outDir": "./lib/cjs",
1013
"sourceMap": true,
1114
"target": "es2020",
1215
"allowSyntheticDefaultImports": true,
1316
"skipLibCheck": true
1417
},
15-
"include": [ "src", "test" ],
16-
"exclude": ["node_modules", "out"]
17-
}
18+
"include": [
19+
"src",
20+
],
21+
"exclude": [
22+
"node_modules",
23+
"test",
24+
"lib"
25+
]
26+
}

tsconfig.umd.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
},
88
"exclude": [
99
"node_modules",
10-
"out",
1110
"lib",
1211
"test"
1312
]

0 commit comments

Comments
 (0)