skillstogether 0.1.6 → 0.1.7
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.
- package/dist/index.js +4 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -415,7 +415,10 @@ async function downloadFile(url) {
|
|
|
415
415
|
timeout: DEFAULT_REQUEST_TIMEOUT_MS
|
|
416
416
|
});
|
|
417
417
|
}
|
|
418
|
-
var SKILL_FOLDER_PATTERN = (organizationSlug, skillSlug) =>
|
|
418
|
+
var SKILL_FOLDER_PATTERN = (organizationSlug, skillSlug) => {
|
|
419
|
+
const prefix = `${organizationSlug}-`;
|
|
420
|
+
return skillSlug.startsWith(prefix) ? skillSlug : `${prefix}${skillSlug}`;
|
|
421
|
+
};
|
|
419
422
|
var SKILL_FILENAME = "SKILL.md";
|
|
420
423
|
async function installSkill(skill, organizationSlug, options) {
|
|
421
424
|
if (!isValidSlug(organizationSlug)) {
|