fix web-types reference

pull/1557/head
Burton Smith 2023-09-07 21:32:45 -04:00
rodzic 883cb161ec
commit 242e8e92ae
3 zmienionych plików z 2 dodań i 3 usunięć

Wyświetl plik

@ -210,7 +210,7 @@ Shoelace ships with a file called `vscode.html-custom-data.json` that can be use
If `settings.json` already exists, simply add the above line to the root of the object. Note that you may need to restart VS Code for the changes to take affect.
## JetBrains IDEs
### JetBrains IDEs
If you are using a [JetBrains IDE](https://www.jetbrains.com/) and you are installing Shoelace from NPM, the editor will automatically detect the `web-types.json` file from the package and you should immediately see component information in your editor.

Wyświetl plik

@ -25,7 +25,7 @@
"./dist/react/*": "./dist/react/*",
"./dist/translations/*": "./dist/translations/*"
},
"files": ["dist", "cdn"],
"files": ["dist", "cdn", "web-types.json"],
"keywords": ["web components", "custom elements", "components"],
"repository": {
"type": "git",

Wyświetl plik

@ -217,7 +217,6 @@ await nextTask('Running the TypeScript compiler', () => {
// Copy the above steps to the CDN directory directly so we don't need to twice the work for nothing.
await nextTask(`Copying Web Types, Themes, Icons, and TS Types to "${cdndir}"`, async () => {
await deleteAsync(cdndir);
await copy('./web-types.json', `${outdir}/web-types.json`);
await copy(outdir, cdndir);
});