From 8c3b5c506e94b082c5397beaab2eb6f1c3e1861a Mon Sep 17 00:00:00 2001 From: mantou132 <709922234@qq.com> Date: Sat, 30 Dec 2023 19:00:55 +0800 Subject: [PATCH] Publish - duoyun-ui@1.1.8 - @mantou/gem@1.7.8 - gem-analyzer@1.7.6 - gem-book@1.5.24 - gem-devtools@1.7.5 - gem-examples@1.7.5 - gem-port@0.0.6 --- packages/duoyun-ui/package.json | 2 +- packages/gem-analyzer/package.json | 4 ++-- packages/gem-book/package.json | 6 +++--- packages/gem-book/src/bin/builder.ts | 1 + packages/gem-book/src/plugins/api.ts | 10 ++++++---- packages/gem-devtools/package.json | 4 ++-- packages/gem-examples/package.json | 6 +++--- packages/gem-port/package.json | 4 ++-- packages/gem/package.json | 2 +- 9 files changed, 21 insertions(+), 18 deletions(-) diff --git a/packages/duoyun-ui/package.json b/packages/duoyun-ui/package.json index 2371999a..f1f6bd8b 100644 --- a/packages/duoyun-ui/package.json +++ b/packages/duoyun-ui/package.json @@ -1,6 +1,6 @@ { "name": "duoyun-ui", - "version": "1.1.7", + "version": "1.1.8", "description": "A lightweight desktop UI component library, implemented using Gem", "keywords": [ "frontend", diff --git a/packages/gem-analyzer/package.json b/packages/gem-analyzer/package.json index 54a0d990..cd6fc7f0 100644 --- a/packages/gem-analyzer/package.json +++ b/packages/gem-analyzer/package.json @@ -1,6 +1,6 @@ { "name": "gem-analyzer", - "version": "1.7.5", + "version": "1.7.6", "description": "gem analyzer", "main": "index.js", "files": [ @@ -13,7 +13,7 @@ "prepublishOnly": "yarn build" }, "dependencies": { - "@mantou/gem": "^1.7.6" + "@mantou/gem": "^1.7.8" }, "devDependencies": { "@gemjs/config": "^1.6.11", diff --git a/packages/gem-book/package.json b/packages/gem-book/package.json index 3815cafe..e32521fb 100644 --- a/packages/gem-book/package.json +++ b/packages/gem-book/package.json @@ -1,6 +1,6 @@ { "name": "gem-book", - "version": "1.5.23", + "version": "1.5.25", "description": "Create your document website easily and quickly", "keywords": [ "doc", @@ -37,7 +37,7 @@ "prepublishOnly": "yarn build" }, "dependencies": { - "@mantou/gem": "^1.7.6", + "@mantou/gem": "^1.7.8", "commander": "^7.2.0", "copy-webpack-plugin": "^11.0.0", "front-matter": "^4.0.2", @@ -71,7 +71,7 @@ "@web/dev-server-esbuild": "^0.2.16", "@web/test-runner": "^0.13.22", "esbuild": "^0.14.14", - "gem-analyzer": "^1.7.5", + "gem-analyzer": "^1.7.6", "nodemon": "^2.0.7", "ts-morph": "^13.0.0", "webpack-cli": "^5.1.4", diff --git a/packages/gem-book/src/bin/builder.ts b/packages/gem-book/src/bin/builder.ts index 89c8ffac..5fe4f8dc 100644 --- a/packages/gem-book/src/bin/builder.ts +++ b/packages/gem-book/src/bin/builder.ts @@ -150,6 +150,7 @@ export function startBuilder(dir: string, options: Required, bo if (stats.hasErrors()) { console.error(info.errors); + process.exit(1); } if (stats.hasWarnings()) { diff --git a/packages/gem-book/src/plugins/api.ts b/packages/gem-book/src/plugins/api.ts index ddc7d941..0a1149be 100644 --- a/packages/gem-book/src/plugins/api.ts +++ b/packages/gem-book/src/plugins/api.ts @@ -13,7 +13,7 @@ type State = { elements?: ElementDetail[]; exports?: ExportDetail[]; error?: any customElements.whenDefined('gem-book').then(() => { const { GemBookPluginElement } = customElements.get('gem-book') as typeof GemBookElement; - const { Gem, config, theme } = GemBookPluginElement; + const { Gem, theme } = GemBookPluginElement; const { html, customElement, attribute, numattribute, createCSSSheet, css, adoptedStyle } = Gem; const MainElement = customElements.get('gem-book-main') as typeof Main; @@ -53,9 +53,11 @@ customElements.whenDefined('gem-book').then(() => { #parseFile = async (text: string) => { const { Project } = (await import(/* webpackIgnore: true */ tsMorph)) as typeof import('ts-morph'); const { getElements, getExports } = - config.github === 'https://github.com/mantou132/gem' - ? await import('gem-analyzer') - : ((await import(/* webpackIgnore: true */ gemAnalyzer)) as typeof import('gem-analyzer')); + // 如何在当前项目使用本地依赖? + // webpackIgnore.config.github === 'https://github.com/mantou132/gem' + // ? require('gem-analyzer') + // : + (await import(/* webpackIgnore: true */ gemAnalyzer)) as typeof import('gem-analyzer'); const project = new Project({ useInMemoryFileSystem: true }); const file = project.createSourceFile(this.src, text); return { elements: getElements(file), exports: getExports(file) }; diff --git a/packages/gem-devtools/package.json b/packages/gem-devtools/package.json index 9ef0ce52..ba61a672 100644 --- a/packages/gem-devtools/package.json +++ b/packages/gem-devtools/package.json @@ -1,6 +1,6 @@ { "name": "gem-devtools", - "version": "1.7.4", + "version": "1.7.5", "description": "Gem devtools", "scripts": { "update:version": "node ./scripts/update.js", @@ -11,7 +11,7 @@ "start": "yarn build && concurrently -k npm:watch npm:browser" }, "dependencies": { - "@mantou/gem": "^1.7.6", + "@mantou/gem": "^1.7.8", "webextension-polyfill": "^0.10.0" }, "devDependencies": { diff --git a/packages/gem-examples/package.json b/packages/gem-examples/package.json index 670a97f3..b2c268f9 100644 --- a/packages/gem-examples/package.json +++ b/packages/gem-examples/package.json @@ -1,15 +1,15 @@ { "private": true, "name": "gem-examples", - "version": "1.7.4", + "version": "1.7.5", "description": "gem examples", "scripts": { "build": "vite build", "start": "vite serve" }, "dependencies": { - "@mantou/gem": "^1.7.6", - "duoyun-ui": "^1.1.7" + "@mantou/gem": "^1.7.8", + "duoyun-ui": "^1.1.8" }, "devDependencies": { "@gemjs/config": "^1.6.11", diff --git a/packages/gem-port/package.json b/packages/gem-port/package.json index 5bedb3a0..14a07c42 100644 --- a/packages/gem-port/package.json +++ b/packages/gem-port/package.json @@ -1,6 +1,6 @@ { "name": "gem-port", - "version": "0.0.5", + "version": "0.0.6", "description": "Export React component", "keywords": [ "gem", @@ -21,7 +21,7 @@ "dependencies": { "@gemjs/config": "^1.6.11", "commander": "^7.2.0", - "gem-analyzer": "^1.7.5", + "gem-analyzer": "^1.7.6", "ts-morph": "^13.0.0", "typescript": "^4.5.0" }, diff --git a/packages/gem/package.json b/packages/gem/package.json index 50e265c7..2f660ad2 100644 --- a/packages/gem/package.json +++ b/packages/gem/package.json @@ -1,6 +1,6 @@ { "name": "@mantou/gem", - "version": "1.7.7", + "version": "1.7.8", "description": "💎 使用自定义元素的轻量级 WebApp 开发框架", "keywords": [ "frontend",