diff --git a/packages/bridge/esbuild.js b/packages/bridge/esbuild.js new file mode 100644 index 0000000..f051009 --- /dev/null +++ b/packages/bridge/esbuild.js @@ -0,0 +1,14 @@ +import { createRequire } from "module"; +import esbuild from "esbuild"; + +const { resolve } = createRequire(import.meta.url); + +await esbuild.build({ + entryPoints: [resolve("@podium/bridge")], + bundle: true, + minify: true, + format: "esm", + outfile: "./dist/index.js", + target: ["es2017"], + sourcemap: true, +}); diff --git a/packages/bridge/package.json b/packages/bridge/package.json new file mode 100644 index 0000000..0a7a701 --- /dev/null +++ b/packages/bridge/package.json @@ -0,0 +1,23 @@ +{ + "name": "podium-bride", + "version": "0.0.0", + "description": "Podium hybrid bridge", + "type": "module", + "scripts": { + "copy": "echo 'noop';", + "build": "node ./esbuild.js", + "eik:login": "eik login", + "eik:publish": "eik publish", + "eik:alias": "eik npm-alias", + "eik:publish:ci": "../../scripts/publish.js bridge @podium/bridge" + }, + "dependencies": { + "@podium/bridge": "^1.2.2" + }, + "eik": { + "name": "@podium/bridge", + "server": "https://assets.finn.no", + "type": "npm", + "files": "dist" + } +}