- 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
17 lines
533 B
TypeScript
17 lines
533 B
TypeScript
#!/usr/bin/env -S pnpm tsx
|
|
import 'zx/globals';
|
|
import cpy from 'cpy';
|
|
|
|
await fs.remove('dist');
|
|
await $`rollup --config rollup.config.ts --configPlugin typescript`;
|
|
await $`resolve-tspaths`;
|
|
await fs.copy('README.md', 'dist/README.md');
|
|
await cpy('dist/**/*.d.ts', 'dist', {
|
|
rename: (basename) => basename.replace(/\.d\.ts$/, '.d.mts'),
|
|
});
|
|
await cpy('dist/**/*.d.ts', 'dist', {
|
|
rename: (basename) => basename.replace(/\.d\.ts$/, '.d.cts'),
|
|
});
|
|
await fs.copy('package.json', 'dist/package.json');
|
|
await $`scripts/fix-imports.ts`;
|