UNPKG

@omnia/fx

Version:

Provide Omnia Fx typings and tooling for clientside Omnia development.

51 lines (50 loc) 2.49 kB
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.init = void 0; Object.defineProperty(exports, "__esModule", { value: true }); const path = require('path'); const fs = require('fs'); const fsExtra = require('fs-extra'); function init() { if (fs.existsSync(process.cwd().replace(/\\/g, "/") + "/node_modules/@omnia/tooling-vue/internal-do-not-import-from-here/tasks/bundle.js")) { const tooling = require('@omnia/tooling-vue/internal-do-not-import-from-here/tasks/bundle'); tooling.registerManifestsReference([ { path: 'node_modules/@omnia/fx/internal-do-not-import-from-here/manifests/omnia.fx.ux.manifest.json', serviceId: 'bb000000-0000-bbbb-0000-0000000000bb', resourceId: 'dee030cc-4ab3-4158-bb06-8049f5c67542' }, { path: 'node_modules/@omnia/fx/internal-do-not-import-from-here/manifests/omnia.fx.ux.richtexteditor.manifest.json', serviceId: 'bb000000-0000-bbbb-0000-0000000000bb', resourceId: 'b46f7161-e941-4240-b573-a9cd83e9d132' }, { path: 'node_modules/@omnia/fx/internal-do-not-import-from-here/manifests/omnia.fx.worker.manifest.json' }, { path: 'node_modules/@omnia/fx/internal-do-not-import-from-here/manifests/omnia.fx.core.manifest.json' }, { path: 'node_modules/@omnia/fx/internal-do-not-import-from-here/manifests/omnia.fx.context.manifest.json' }, { path: 'node_modules/@omnia/fx/internal-do-not-import-from-here/manifests/omnia.fx.manifest.json' }, { path: 'node_modules/@omnia/fx/internal-do-not-import-from-here/manifests/omnia.vendor.manifest.json' }, { path: 'node_modules/@omnia/fx/internal-do-not-import-from-here/manifests/omnia.worker.vendor.manifest.json' }, { path: 'node_modules/@omnia/fx/internal-do-not-import-from-here/manifests/omnia.shared.vendor.manifest.json' } ]); let wcdefinitionsPath = path.resolve(__dirname, "./internal-do-not-import-from-here/wcdefinitions.json"); if (fsExtra.existsSync(wcdefinitionsPath)) { tooling.registerWebComponentDefinitions(fsExtra.readJSONSync(wcdefinitionsPath)); } } } exports.init = init;