Skip to content

Commit 473b06b

Browse files
committed
fix: language configurations are now correctly included in the build
The fault was that they weren't copied to `dist/` with the built files, but referenced locally. This meant they failed to occur in the published version of the extension. Update syntaxes project `build` target with verbose commands syntax to copy them over correctly. Retarget reference to distribution folder, so local builds won't present a false positive anymore. This change correctly includes them in the bundle. The required auto-closing/indentation/comment declarations are now contributed to ccini! ^_^.
1 parent df941a9 commit 473b06b

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
"extensions": [
6767
".ini"
6868
],
69-
"configuration": "packages/syntaxes/src/language-configuration.json"
69+
"configuration": "dist/packages/syntaxes/language-configuration.json"
7070
}
7171
],
7272
"grammars": [

packages/syntaxes/project.json

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,18 @@
55
"projectType": "library",
66
"targets": {
77
"build": {
8-
"command": "npx js-yaml packages/syntaxes/src/ccini.tmLanguage.yaml > dist/packages/syntaxes/ccini.tmLanguage.json",
9-
"outputs": ["{options.outputPath}"],
10-
"defaultConfiguration": "development",
8+
"executor": "nx:run-commands",
119
"options": {
12-
"outputPath": "dist/packages/syntaxes",
13-
"tsConfig": "packages/syntaxes/tsconfig.lib.json"
10+
"commands": [
11+
"npx mkdirp \"dist/packages/syntaxes\"",
12+
"npx js-yaml packages/syntaxes/src/ccini.tmLanguage.yaml > dist/packages/syntaxes/ccini.tmLanguage.json",
13+
"cp packages/syntaxes/src/language-configuration.json dist/packages/syntaxes/language-configuration.json"
14+
],
15+
"outputPath": "dist/packages/syntaxes"
1416
},
17+
"outputs": ["{options.outputPath}"],
18+
"defaultConfiguration": "production",
1519
"configurations": {
16-
"development": {},
1720
"production": {}
1821
}
1922
}

0 commit comments

Comments
 (0)