From 3596c8144d063019cd1655861d82481fd899b1db Mon Sep 17 00:00:00 2001 From: Cory LaViska Date: Fri, 3 Feb 2023 14:27:17 -0500 Subject: [PATCH] add dist to custom-elements.json; fixes #1166 --- custom-elements-manifest.config.js | 6 +++--- docs/resources/changelog.md | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/custom-elements-manifest.config.js b/custom-elements-manifest.config.js index b13a7899..d75d40e8 100644 --- a/custom-elements-manifest.config.js +++ b/custom-elements-manifest.config.js @@ -1,8 +1,8 @@ -import fs from 'fs'; import { generateCustomData } from 'cem-plugin-vs-code-custom-data-generator'; -import commandLineArgs from 'command-line-args'; import { parse } from 'comment-parser'; import { pascalCase } from 'pascal-case'; +import commandLineArgs from 'command-line-args'; +import fs from 'fs'; const packageData = JSON.parse(fs.readFileSync('./package.json', 'utf8')); const { name, description, version, author, homepage, license } = packageData; @@ -136,7 +136,7 @@ export default { // components/button/button.js // const terms = [ - { from: /^src\//, to: '' }, // Strip the src/ prefix + { from: /^src\//, to: 'dist/' }, // Strip the src/ prefix { from: /\.(t|j)sx?$/, to: '.js' } // Convert .ts to .js ]; diff --git a/docs/resources/changelog.md b/docs/resources/changelog.md index f212bb9f..47cf8b45 100644 --- a/docs/resources/changelog.md +++ b/docs/resources/changelog.md @@ -12,6 +12,7 @@ New versions of Shoelace are released as-needed and generally occur when a criti - Fixed a bug that prevented `web-types.json` from being generated [#1154](https://github.com/shoelace-style/shoelace/discussions/1154) - Fixed a bug in `` that prevented `sl-change` and `sl-input` from emitting when using the eye dropper [#1157](https://github.com/shoelace-style/shoelace/issues/1157) - Fixed a bug in `` that prevented keyboard users from selecting menu items when using the keyboard [#1165](https://github.com/shoelace-style/shoelace/issues/1165) +- Fixed a bug in Shoelace's CEM Analyzer plugin that caused it to generate the wrong path for component modules [#1166](https://github.com/shoelace-style/shoelace/issues/1166) ## 2.0.0