UNPKG

@embeddable.com/sdk-core

Version:

Core Embeddable SDK module responsible for web-components bundling and publishing.

27 lines (25 loc) 808 B
import * as path from "node:path"; export default (coreRoot: string, clientRoot: string) => ({ core: { rootDir: coreRoot, templatesDir: path.resolve(coreRoot, "templates"), configsDir: path.resolve(coreRoot, "configs"), }, client: { rootDir: clientRoot, buildDir: path.resolve(clientRoot, ".embeddable-build"), srcDir: path.resolve(clientRoot, "src"), tmpDir: path.resolve(clientRoot, ".embeddable-tmp"), componentDir: path.resolve(clientRoot, ".embeddable-build", "component"), stencilBuild: path.resolve( clientRoot, ".embeddable-build", "dist", "embeddable-wrapper", ), archiveFile: path.resolve(clientRoot, "embeddable-build.zip"), }, outputOptions: { typesEntryPointFilename: "embeddable-types-entry-point.js", }, });