Initial Commit
This commit is contained in:
72
packages/networking/drive/drive-sharing/vite.config.ts
Normal file
72
packages/networking/drive/drive-sharing/vite.config.ts
Normal file
@@ -0,0 +1,72 @@
|
||||
import { defineConfig } from "vite";
|
||||
import dts from "vite-plugin-dts";
|
||||
|
||||
export default defineConfig({
|
||||
root: __dirname,
|
||||
cacheDir: "../../../node_modules/.vite/packages/drive-sharing",
|
||||
plugins: [
|
||||
dts({
|
||||
entryRoot: "src",
|
||||
tsconfigPath: "./tsconfig.lib.json",
|
||||
insertTypesEntry: true,
|
||||
}),
|
||||
],
|
||||
build: {
|
||||
outDir: "./dist",
|
||||
emptyOutDir: true,
|
||||
reportCompressedSize: true,
|
||||
sourcemap: true,
|
||||
lib: {
|
||||
entry: {
|
||||
index: "src/index.ts",
|
||||
"error-codes": "src/error-codes/index.ts",
|
||||
"constants/index": "src/constants/index.ts",
|
||||
"types/common": "src/types/common.ts",
|
||||
"types/schemas": "src/types/schemas.ts",
|
||||
"encryption/envelope/envelope":
|
||||
"src/encryption/envelope/envelope.ts",
|
||||
"encryption/key-ring/key-ring":
|
||||
"src/encryption/key-ring/key-ring.ts",
|
||||
"partitions/partition-policy/partition-policy":
|
||||
"src/partitions/partition-policy/partition-policy.ts",
|
||||
"partitions/partition-store/partition-store":
|
||||
"src/partitions/partition-store/partition-store.ts",
|
||||
"partitions/partition-manager/partition-manager":
|
||||
"src/partitions/partition-manager/partition-manager.ts",
|
||||
"sharing/grants/grants": "src/sharing/grants/grants.ts",
|
||||
"sharing/tokens/tokens": "src/sharing/tokens/tokens.ts",
|
||||
"transfer/transfer/transfer":
|
||||
"src/transfer/transfer/transfer.ts",
|
||||
"otel/instruments": "src/otel/instruments.ts",
|
||||
},
|
||||
formats: ["es"],
|
||||
},
|
||||
rollupOptions: {
|
||||
treeshake: true,
|
||||
output: {
|
||||
preserveModules: true,
|
||||
preserveModulesRoot: "src",
|
||||
entryFileNames: "[name].js",
|
||||
},
|
||||
external: [
|
||||
"@opentelemetry/api",
|
||||
"@suaveplan/crypto",
|
||||
/^@suaveplan\/crypto\//,
|
||||
"@suaveplan/crypto-cipher",
|
||||
/^@suaveplan\/crypto-cipher\//,
|
||||
"@suaveplan/crypto-hash",
|
||||
/^@suaveplan\/crypto-hash\//,
|
||||
"@suaveplan/crypto-utils",
|
||||
/^@suaveplan\/crypto-utils\//,
|
||||
"@suaveplan/drive",
|
||||
/^@suaveplan\/drive\//,
|
||||
"@suaveplan/error",
|
||||
"@suaveplan/events",
|
||||
"@suaveplan/types",
|
||||
"tslib",
|
||||
"zod",
|
||||
/^node:/,
|
||||
],
|
||||
},
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user