Fix git casing, esm bug.
This commit is contained in:
@@ -2,13 +2,16 @@ import { mkdirs, pathExists, remove } from 'fs-extra/esm'
|
|||||||
import { writeFile } from 'fs/promises'
|
import { writeFile } from 'fs/promises'
|
||||||
import { join, resolve } from 'path'
|
import { join, resolve } from 'path'
|
||||||
import { createGenerator } from 'ts-json-schema-generator'
|
import { createGenerator } from 'ts-json-schema-generator'
|
||||||
import { URL } from 'url'
|
import { URL, fileURLToPath } from 'url'
|
||||||
import { DistroMeta } from '../model/nebula/DistroMeta.js'
|
import { DistroMeta } from '../model/nebula/DistroMeta.js'
|
||||||
import { ServerMeta } from '../model/nebula/ServerMeta.js'
|
import { ServerMeta } from '../model/nebula/ServerMeta.js'
|
||||||
import { LoggerUtil } from './LoggerUtil.js'
|
import { LoggerUtil } from './LoggerUtil.js'
|
||||||
|
|
||||||
const logger = LoggerUtil.getLogger('SchemaUtil')
|
const logger = LoggerUtil.getLogger('SchemaUtil')
|
||||||
|
|
||||||
|
const __filename = fileURLToPath(import.meta.url)
|
||||||
|
const __dirname = fileURLToPath(new URL('.', import.meta.url))
|
||||||
|
|
||||||
interface SchemaType {
|
interface SchemaType {
|
||||||
/**
|
/**
|
||||||
* URL to the JSON schema for this type of file.
|
* URL to the JSON schema for this type of file.
|
||||||
|
|||||||
Reference in New Issue
Block a user