Skip to content

Commit f2d704e

Browse files
Brian MadisonBrian Madison
authored andcommitted
Remove _module-installer pattern for declarative directory creation
- Delete src/_module-installer folder (security risk: arbitrary code execution) - Remove chalk, fs-extra from dependencies (no longer needed) - Update eslint.config.mjs to remove _module-installer CommonJS overrides - Update module.yaml with directories key using variable references
1 parent 660af7d commit f2d704e

4 files changed

Lines changed: 4 additions & 107 deletions

File tree

eslint.config.mjs

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -114,17 +114,6 @@ export default [
114114
},
115115
},
116116

117-
// Module installer scripts use CommonJS for compatibility
118-
{
119-
files: ['**/_module-installer/**/*.js'],
120-
rules: {
121-
// Allow CommonJS patterns for installer scripts
122-
'unicorn/prefer-module': 'off',
123-
'n/no-missing-require': 'off',
124-
'n/no-unpublished-require': 'off',
125-
},
126-
},
127-
128117
// ESLint config file should not be checked for publish-related Node rules
129118
{
130119
files: ['eslint.config.mjs'],

package.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,6 @@
5050
"markdownlint-cli2"
5151
]
5252
},
53-
"dependencies": {
54-
"chalk": "^4.1.2",
55-
"fs-extra": "^11.3.0"
56-
},
5753
"devDependencies": {
5854
"@astrojs/sitemap": "^3.6.0",
5955
"@astrojs/starlight": "^0.37.0",

src/_module-installer/installer.js

Lines changed: 0 additions & 92 deletions
This file was deleted.

src/module.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,7 @@ bmb_creations_output_folder:
1313
prompt: "Where should your custom agents, workflows, and modules be saved?"
1414
default: "{output_folder}/bmb-creations"
1515
result: "{project-root}/{value}"
16+
17+
# Directories to create during installation (declarative, no code execution)
18+
directories:
19+
- "{bmb_creations_output_folder}"

0 commit comments

Comments
 (0)