mirror of
https://github.com/strapi/strapi.git
synced 2025-06-27 00:41:25 +00:00

* chore: initiate moving CM to own package * chore: refactor to handle routes * chore: init review-workflows-package * chore: fix build * chore: refactor review-workflows fe * chore: fix unit suite * chore: spelling mistake Co-authored-by: Jamie Howard <48524071+jhoward1994@users.noreply.github.com> --------- Co-authored-by: Jamie Howard <48524071+jhoward1994@users.noreply.github.com>
40 lines
1.0 KiB
TypeScript
40 lines
1.0 KiB
TypeScript
import { Config, defineConfig } from '@strapi/pack-up';
|
|
|
|
const config: Config = defineConfig({
|
|
bundles: [
|
|
{
|
|
types: './dist/admin/src/index.d.ts',
|
|
source: './admin/src/index.ts',
|
|
import: './dist/admin/index.mjs',
|
|
require: './dist/admin/index.js',
|
|
tsconfig: './admin/tsconfig.build.json',
|
|
runtime: 'web',
|
|
},
|
|
{
|
|
types: './dist/shared/index.d.ts',
|
|
source: './shared/index.ts',
|
|
import: './dist/shared/index.mjs',
|
|
require: './dist/shared/index.js',
|
|
tsconfig: './server/tsconfig.build.json',
|
|
runtime: 'node',
|
|
},
|
|
{
|
|
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;
|