Skip to content

Commit

Permalink
chore: remove build types
Browse files Browse the repository at this point in the history
  • Loading branch information
rudemex committed Mar 26, 2023
1 parent ec7de71 commit f5d0f2b
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 22 deletions.
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@
"@types/inline-css": "^3.0.1",
"@types/jest": "^29.2.6",
"@types/mocha": "^10.0.1",
"@types/node": "18.15.5",
"@types/node": "^18.15.5",
"@types/nodemailer": "^6.4.4",
"@types/pug": "^2.0.6",
"@types/supertest": "^2.0.11",
Expand All @@ -132,10 +132,10 @@
"supertest": "^6.2.2",
"testcontainers": "^9.1.1",
"ts-jest": "^29.0.5",
"ts-loader": "9.2.6",
"ts-node": "10.4.0",
"ts-loader": "^9.2.6",
"ts-node": "^10.4.0",
"tsconfig-paths": "^4.1.2",
"turbo": "^1.8.5",
"typescript": "4.5.5"
"typescript": "^4.5.5"
}
}
10 changes: 1 addition & 9 deletions packages/test-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
"@pika/pack": {
"pipeline": [
[
"@pika/plugin-standard-pkg",
"@pika/plugin-ts-standard-pkg",
{
"exclude": [
"**/__test__/*"
Expand All @@ -74,14 +74,6 @@
"**/__test__/*"
]
}
],
[
"@pika/plugin-build-types",
{
"exclude": [
"**/__test__/*"
]
}
]
]
}
Expand Down
2 changes: 1 addition & 1 deletion packages/test-utils/src/__mocks__/jest.mocks.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { appConfigBase } from '../fixtures';
import { appConfigBase } from '../fixtures/appConfigBase';

export const config = jest.fn().mockImplementation(() => appConfigBase);

Expand Down
2 changes: 1 addition & 1 deletion packages/test-utils/src/__test__/testcontainer.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { testContainers } from '../testcontainers';
import { StartedGenericContainer } from 'testcontainers/dist/generic-container/started-generic-container';
import { StartedGenericContainer } from 'testcontainers/dist/src/generic-container/started-generic-container';

import {
TCRedisOptions,
Expand Down
2 changes: 1 addition & 1 deletion packages/test-utils/src/config/configuration.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Typings } from '@tresdoce-nestjs-toolkit/core';
import { registerAs } from '@nestjs/config';

import { appConfigBase } from '../fixtures';
import { appConfigBase } from '../fixtures/appConfigBase';

export default registerAs('config', (): Typings.AppConfig => appConfigBase);
2 changes: 1 addition & 1 deletion packages/test-utils/src/config/dynamic-configuration.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Typings } from '@tresdoce-nestjs-toolkit/core';
import { registerAs } from '@nestjs/config';

import { appConfigBase } from '../fixtures';
import { appConfigBase } from '../fixtures/appConfigBase';

export const dynamicConfig = ({ ...args } = {}) =>
registerAs('config', (): Typings.AppConfig => ({ ...appConfigBase, ...args }));
4 changes: 2 additions & 2 deletions packages/test-utils/src/testcontainers/testContainersTD.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { GenericContainer, StartedTestContainer, TestContainer, Wait } from 'testcontainers';
import { RandomUuid } from 'testcontainers/dist/uuid';
import { StopOptions } from 'testcontainers/dist/test-container';
import { RandomUuid } from 'testcontainers/dist/src/uuid';
import { StopOptions } from 'testcontainers/dist/src/test-container';
import * as _ from 'lodash';

import { ITestContainerOptions, Env } from './types';
Expand Down
2 changes: 1 addition & 1 deletion packages/test-utils/src/testcontainers/types.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { PortWithOptionalBinding } from 'testcontainers/dist/port';
import { PortWithOptionalBinding } from 'testcontainers/dist/src/port';

export declare type EnvKey = string;
export declare type Env = {
Expand Down
3 changes: 1 addition & 2 deletions packages/test-utils/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
{
"extends": "@tresdoce-nestjs-toolkit/config",
"compilerOptions": {
"rootDir": "./src",
"types": ["tresdoce-nestjs-toolkit", "jest"]
"rootDir": "./src"
},
"include": ["src/**/*"],
"exclude": [
Expand Down

0 comments on commit f5d0f2b

Please sign in to comment.