瀏覽代碼

Use npm ci for plugins

master
Palash Bansal 2 年之前
父節點
當前提交
c392e29159
沒有連結到貢獻者的電子郵件帳戶。
共有 2 個檔案被更改,包括 3 行新增3 行删除
  1. 2
    2
      plugins/geometry-generator/src/AGeometryGenerator.ts
  2. 1
    1
      scripts/build-plugins.mjs

+ 2
- 2
plugins/geometry-generator/src/AGeometryGenerator.ts 查看文件

if (!geometry.userData.generationParams) return [] if (!geometry.userData.generationParams) return []
const ui = generateUiConfig(geometry.userData.generationParams) const ui = generateUiConfig(geometry.userData.generationParams)
// @ts-expect-error we assume only functions will be generated since its an object // @ts-expect-error we assume only functions will be generated since its an object
?.map(v=>v())
.filter(v=>getOrCall(v.property)?.[1] !== 'type')
.map(v=>v())
.filter(v=>getOrCall(v.property)?.[1] !== 'type') as UiObjectConfig[]
ui.forEach(u=> { ui.forEach(u=> {
u.onChange = () => this.generate(geometry) u.onChange = () => this.generate(geometry)
}) })

+ 1
- 1
scripts/build-plugins.mjs 查看文件

import {execEachPlugin} from "./utils.mjs"; import {execEachPlugin} from "./utils.mjs";


// Each plugin should have "prepare" that will also build the plugin // Each plugin should have "prepare" that will also build the plugin
execEachPlugin('npm install') // install dependencies
execEachPlugin('npm ci') // install dependencies
execEachPlugin('npm run docs') execEachPlugin('npm run docs')

Loading…
取消
儲存