@blocklet/pages-kit-block-studio 0.5.5 → 0.5.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.
@@ -114,8 +114,8 @@ exports.initResourceRouter.get('/', async (_req, res) => {
114
114
  resources: [
115
115
  {
116
116
  id: allTag,
117
- name: 'All Blocks',
118
- description: 'Select All Blocks',
117
+ name: 'All Components',
118
+ description: 'Select All Components',
119
119
  images: [],
120
120
  url: '',
121
121
  children: resources,
@@ -133,6 +133,9 @@ exports.initResourceRouter.post('/', async (req, res) => {
133
133
  currentBuildProcess.kill();
134
134
  currentBuildProcess = null;
135
135
  }
136
+ if (componentIds.length === 0) {
137
+ throw new Error('No components founds, please check has any component been selected');
138
+ }
136
139
  // Execute build command with filtered components
137
140
  const buildProcess = (0, child_process_1.spawn)('pnpm', ['run', 'build-lib'], {
138
141
  stdio: 'inherit',