- Rebrand package from drizzle-typebox to @alkdev/drizzlebox - Replace @sinclair/typebox with @alkdev/typebox in all source and test files - Replace @sinclair/typebox with @alkdev/typebox in rollup externals - Convert tsconfig.json from monorepo extends to standalone config - Fix build script monorepo remnant (dist.new -> dist) - Add missing devDependencies (recast, tsx, typescript, resolve-tspaths) - Replace monorepo link dependency for drizzle-orm with ^0.38.4 - Add .gitignore, LICENSE (Apache-2.0 with attribution), and README - Initialize git repo with remote at git.alk.dev:alkdev/drizzlebox
34 lines
602 B
TypeScript
34 lines
602 B
TypeScript
import typescript from '@rollup/plugin-typescript';
|
|
import { defineConfig } from 'rollup';
|
|
|
|
export default defineConfig([
|
|
{
|
|
input: 'src/index.ts',
|
|
output: [
|
|
{
|
|
format: 'esm',
|
|
dir: 'dist',
|
|
entryFileNames: '[name].mjs',
|
|
chunkFileNames: '[name]-[hash].mjs',
|
|
sourcemap: true,
|
|
},
|
|
{
|
|
format: 'cjs',
|
|
dir: 'dist',
|
|
entryFileNames: '[name].cjs',
|
|
chunkFileNames: '[name]-[hash].cjs',
|
|
sourcemap: true,
|
|
},
|
|
],
|
|
external: [
|
|
/^drizzle-orm\/?/,
|
|
'@alkdev/typebox',
|
|
],
|
|
plugins: [
|
|
typescript({
|
|
tsconfig: 'tsconfig.build.json',
|
|
}),
|
|
],
|
|
},
|
|
]);
|