refactor(cr-seed-cli): convert to ESM (#7192)
This commit is contained in:
@@ -1,11 +1,10 @@
|
|||||||
#!/usr/bin/env node
|
#!/usr/bin/env node
|
||||||
|
|
||||||
'use strict'
|
import { defer } from 'golike-defer'
|
||||||
|
import { readFileSync } from 'fs'
|
||||||
|
import { Ref, Xapi } from 'xen-api'
|
||||||
|
|
||||||
const { Ref, Xapi } = require('xen-api')
|
const pkg = JSON.parse(readFileSync(new URL('./package.json', import.meta.url)))
|
||||||
const { defer } = require('golike-defer')
|
|
||||||
|
|
||||||
const pkg = require('./package.json')
|
|
||||||
|
|
||||||
Xapi.prototype.getVmDisks = async function (vm) {
|
Xapi.prototype.getVmDisks = async function (vm) {
|
||||||
const disks = { __proto__: null }
|
const disks = { __proto__: null }
|
||||||
@@ -10,10 +10,10 @@
|
|||||||
"url": "https://github.com/vatesfr/xen-orchestra.git"
|
"url": "https://github.com/vatesfr/xen-orchestra.git"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=8"
|
"node": ">=10"
|
||||||
},
|
},
|
||||||
"bin": {
|
"bin": {
|
||||||
"xo-cr-seed": "./index.js"
|
"xo-cr-seed": "./index.mjs"
|
||||||
},
|
},
|
||||||
"preferGlobal": true,
|
"preferGlobal": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|||||||
@@ -35,6 +35,7 @@
|
|||||||
|
|
||||||
- @vates/nbd-client patch
|
- @vates/nbd-client patch
|
||||||
- @xen-orchestra/backups patch
|
- @xen-orchestra/backups patch
|
||||||
|
- @xen-orchestra/cr-seed-cli major
|
||||||
- @xen-orchestra/vmware-explorer patch
|
- @xen-orchestra/vmware-explorer patch
|
||||||
- xo-server-netbox minor
|
- xo-server-netbox minor
|
||||||
- xo-vmdk-to-vhd patch
|
- xo-vmdk-to-vhd patch
|
||||||
|
|||||||
Reference in New Issue
Block a user