@blocklet/pages-kit-block-studio 0.0.11 → 0.0.12
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/lib/cjs/middlewares/init-resource-router.js +1 -1
- package/lib/cjs/plugins/vite-plugin-block-studio.js +8 -2
- package/lib/cjs/tsconfig.tsbuildinfo +1 -1
- package/lib/cjs/utils/build-lib.js +3 -4
- package/lib/cjs/utils/helper.js +2 -1
- package/lib/esm/middlewares/init-resource-router.js +2 -2
- package/lib/esm/plugins/vite-plugin-block-studio.js +8 -2
- package/lib/esm/tsconfig.tsbuildinfo +1 -1
- package/lib/esm/utils/build-lib.js +1 -2
- package/lib/esm/utils/helper.js +1 -0
- package/lib/types/tsconfig.tsbuildinfo +1 -1
- package/lib/types/utils/helper.d.ts +1 -0
- package/package.json +1 -1
|
@@ -11,7 +11,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
11
11
|
/* eslint-disable no-console */
|
|
12
12
|
import chalk from 'chalk';
|
|
13
13
|
import { execSync, spawn } from 'child_process';
|
|
14
|
-
import { findComponentFiles } from './helper';
|
|
14
|
+
import { findComponentFiles, libDir } from './helper';
|
|
15
15
|
export function buildLib(options) {
|
|
16
16
|
return __awaiter(this, void 0, void 0, function* () {
|
|
17
17
|
var _a, _b;
|
|
@@ -25,7 +25,6 @@ export function buildLib(options) {
|
|
|
25
25
|
: ((_b = process.env.BLOCK_FILTER) === null || _b === void 0 ? void 0 : _b.split(',')) || null;
|
|
26
26
|
const ignoreViteLog = false; // process.argv.includes('--log') ? false : process.env.BLOCK_LOG !== 'true';
|
|
27
27
|
const multiMode = process.argv.includes('--multi') || process.env.BLOCK_MULTI === 'true';
|
|
28
|
-
const libDir = 'lib';
|
|
29
28
|
const blocks = allBlocks.filter((name) => !filterModules || filterModules.includes(name || ''));
|
|
30
29
|
if (!blocks.length) {
|
|
31
30
|
console.log(chalk.yellow('No blocks founds'));
|
package/lib/esm/utils/helper.js
CHANGED