@embeddable.com/sdk-core 2.4.29 → 2.4.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.esm.js +6 -2
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +7 -2
- package/lib/index.js.map +1 -1
- package/package.json +1 -1
package/lib/index.esm.js
CHANGED
|
@@ -8,6 +8,7 @@ import * as fsSync from 'node:fs';
|
|
|
8
8
|
import { createNodeLogger, createNodeSys } from '@stencil/core/sys/node';
|
|
9
9
|
import { loadConfig, createCompiler } from '@stencil/core/compiler';
|
|
10
10
|
import * as YAML from 'yaml';
|
|
11
|
+
import * as url$2 from 'node:url';
|
|
11
12
|
import * as path$2 from 'path';
|
|
12
13
|
import path__default, { basename } from 'path';
|
|
13
14
|
import require$$4$1 from 'util';
|
|
@@ -351,7 +352,9 @@ async function generate$1(ctx) {
|
|
|
351
352
|
const optionsFiles = await findFiles(ctx.client.srcDir, EMB_OPTIONS_FILE_REGEX);
|
|
352
353
|
const typeImports = typeFiles
|
|
353
354
|
.concat(optionsFiles)
|
|
354
|
-
.map(([_fileName, filePath]) => `import './${path$1
|
|
355
|
+
.map(([_fileName, filePath]) => `import './${path$1
|
|
356
|
+
.relative(ctx.client.rootDir, filePath)
|
|
357
|
+
.replaceAll("\\", "/")}';`)
|
|
355
358
|
.join("\n");
|
|
356
359
|
await fs$1.writeFile(path$1.resolve(ctx.client.rootDir, ctx.outputOptions.typesEntryPointFilename), typeImports);
|
|
357
360
|
}
|
|
@@ -4627,7 +4630,8 @@ var provideConfig = async () => {
|
|
|
4627
4630
|
console.log("Please create a proper `embeddable.config.js` file first.");
|
|
4628
4631
|
process.exit(1);
|
|
4629
4632
|
}
|
|
4630
|
-
|
|
4633
|
+
const configFileUrl = url$2.pathToFileURL(configFilePath).href;
|
|
4634
|
+
return (await import(configFileUrl)).default;
|
|
4631
4635
|
};
|
|
4632
4636
|
|
|
4633
4637
|
function getDefaultExportFromCjs (x) {
|