ソースを参照

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 ファイルの表示

@@ -72,8 +72,8 @@ export abstract class AGeometryGenerator<Tp=any> implements GeometryGenerator<Tp
if (!geometry.userData.generationParams) return []
const ui = generateUiConfig(geometry.userData.generationParams)
// @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=> {
u.onChange = () => this.generate(geometry)
})

+ 1
- 1
scripts/build-plugins.mjs ファイルの表示

@@ -1,5 +1,5 @@
import {execEachPlugin} from "./utils.mjs";

// 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')

読み込み中…
キャンセル
保存