mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-21 17:12:43 +00:00
feat: improve monorepo dev experience
This commit is contained in:
16
packages/core/tsup.config.ts
Normal file
16
packages/core/tsup.config.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
import {defineConfig} from 'tsup';
|
||||
import {jsonSchemaPlugin} from '@openstapps/json-schema-generator';
|
||||
import {openapiPlugin} from '@openstapps/openapi-generator';
|
||||
import {elasticsearchMappingGenerator} from '@openstapps/es-mapping-generator';
|
||||
|
||||
export default defineConfig({
|
||||
entry: ['src/index.ts'],
|
||||
sourcemap: true,
|
||||
clean: true,
|
||||
format: 'esm',
|
||||
outDir: 'lib',
|
||||
plugins: [
|
||||
jsonSchemaPlugin('index.schema.json', elasticsearchMappingGenerator('elasticsearch.json')),
|
||||
openapiPlugin('openapi.json', 'index.schema.json'),
|
||||
],
|
||||
});
|
||||
Reference in New Issue
Block a user