strapi/packages/core/upload/packup.config.ts
Simone c7b2b2abcc
chore: migrate media-library initial setup (#21375)
* chore: migrate and create config files for the migration

* chore: migrate test utils to TS

* chore: fix the typo

* chore: fix eslint errors

* chore: fix prettier error
2024-09-24 11:01:14 +02:00

32 lines
870 B
TypeScript

import { Config, defineConfig } from '@strapi/pack-up';
const config: Config = defineConfig({
bundles: [
{
types: './dist/admin/src/index.d.ts',
source: './admin/src/index.js', // TODO: change it with the .ts file
import: './dist/admin/index.mjs',
require: './dist/admin/index.js',
tsconfig: './admin/tsconfig.build.json',
runtime: 'web',
},
{
source: './server/src/index.ts',
import: './dist/server/index.mjs',
require: './dist/server/index.js',
types: './dist/server/src/index.d.ts',
tsconfig: './server/tsconfig.build.json',
runtime: 'node',
},
],
dist: './dist',
/**
* Because we're exporting a server & client package
* which have different runtimes we want to ignore
* what they look like in the package.json
*/
exports: {},
});
export default config;