feat: rename to @erp/plugin-sdk, publish via Gitea Packages
This commit is contained in:
parent
d6efcc5bd1
commit
4ac6b061a8
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "erp-plugin-sdk",
|
"name": "@erp/plugin-sdk",
|
||||||
"version": "1.0.0",
|
"version": "1.1.0",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
"types": "dist/index.d.ts",
|
"types": "dist/index.d.ts",
|
||||||
"bin": {
|
"bin": {
|
||||||
|
|
|
||||||
|
|
@ -110,7 +110,7 @@ spec:
|
||||||
'@nestjs/serve-static': '^4.0.2',
|
'@nestjs/serve-static': '^4.0.2',
|
||||||
'amqp-connection-manager': '^4.1.14',
|
'amqp-connection-manager': '^4.1.14',
|
||||||
amqplib: '^0.10.3',
|
amqplib: '^0.10.3',
|
||||||
'erp-plugin-sdk': 'git+https://gitea.ss.3w.com.ua/erp/erp-plugin-sdk.git',
|
'@erp/plugin-sdk': '^1.1.0',
|
||||||
pg: '^8.12.0',
|
pg: '^8.12.0',
|
||||||
'reflect-metadata': '^0.1.13',
|
'reflect-metadata': '^0.1.13',
|
||||||
rxjs: '^7.8.1',
|
rxjs: '^7.8.1',
|
||||||
|
|
@ -125,6 +125,10 @@ spec:
|
||||||
},
|
},
|
||||||
}, null, 2) + '\n',
|
}, null, 2) + '\n',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
relativePath: 'backend/.npmrc',
|
||||||
|
content: '@erp:registry=https://gitea.ss.3w.com.ua/api/packages/erp/npm/\n',
|
||||||
|
},
|
||||||
{
|
{
|
||||||
relativePath: 'backend/tsconfig.json',
|
relativePath: 'backend/tsconfig.json',
|
||||||
content: JSON.stringify({
|
content: JSON.stringify({
|
||||||
|
|
@ -185,7 +189,7 @@ CMD ["npm", "run", "start:prod"]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
relativePath: 'backend/src/main.ts',
|
relativePath: 'backend/src/main.ts',
|
||||||
content: `import { CoreService, RequestContextInterceptor } from 'erp-plugin-sdk';
|
content: `import { CoreService, RequestContextInterceptor } from '@erp/plugin-sdk';
|
||||||
import { NestFactory } from '@nestjs/core';
|
import { NestFactory } from '@nestjs/core';
|
||||||
import { Logger } from '@nestjs/common';
|
import { Logger } from '@nestjs/common';
|
||||||
import * as path from 'path';
|
import * as path from 'path';
|
||||||
|
|
@ -240,7 +244,7 @@ async function bootstrap() {
|
||||||
next();
|
next();
|
||||||
});
|
});
|
||||||
|
|
||||||
const { getRabbitMQOptions } = await import('erp-plugin-sdk');
|
const { getRabbitMQOptions } = await import('@erp/plugin-sdk');
|
||||||
app.connectMicroservice(getRabbitMQOptions('plugin_${snake}_queue'));
|
app.connectMicroservice(getRabbitMQOptions('plugin_${snake}_queue'));
|
||||||
|
|
||||||
app.enableCors();
|
app.enableCors();
|
||||||
|
|
@ -263,7 +267,7 @@ bootstrap().catch((err) => {
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
relativePath: 'backend/src/app.module.ts',
|
relativePath: 'backend/src/app.module.ts',
|
||||||
content: `import { CoreService, getRabbitMQClientOptions } from 'erp-plugin-sdk';
|
content: `import { CoreService, getRabbitMQClientOptions } from '@erp/plugin-sdk';
|
||||||
import { Module } from '@nestjs/common';
|
import { Module } from '@nestjs/common';
|
||||||
import { ClientsModule } from '@nestjs/microservices';
|
import { ClientsModule } from '@nestjs/microservices';
|
||||||
import { TypeOrmModule } from '@nestjs/typeorm';
|
import { TypeOrmModule } from '@nestjs/typeorm';
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue