Skip to content

Commit

Permalink
fix: Add tsx and tsup
Browse files Browse the repository at this point in the history
  • Loading branch information
GuilhermeSantos001 committed Jan 19, 2023
1 parent 07b339b commit 130f563
Show file tree
Hide file tree
Showing 5 changed files with 483 additions and 149 deletions.
1 change: 0 additions & 1 deletion setup/env.example
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
NODE_ENV="development"
PORT=4000
CRYPTO_PASSWORD="kaQI3fe5N!DG7W28XbmwUU*j0Kku^WFxp4q%#A2tmPIK1c2RN1"
REDIS_URL="redis://redis:6379"
REDIS_PORT=6379
REDIS_PASSWORD=""
2 changes: 1 addition & 1 deletion src/__tests__/setup-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ import { resolve } from 'path';
import { config } from 'dotenv';

config({
path: resolve(__dirname, './.env.test')
path: resolve(__dirname, '../../.env.test'),
});
11 changes: 11 additions & 0 deletions tsup.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { defineConfig } from 'tsup';

export default defineConfig((options) => {
return {
name: 'Development Build',
tsconfig: 'tsconfig.json',
outDir: 'build',
minify: !options.watch,
dts: true,
};
});
11 changes: 11 additions & 0 deletions tsup.config.release.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { defineConfig } from 'tsup';

export default defineConfig((options) => {
return {
name: 'Release Build',
tsconfig: 'tsconfig.release.json',
outDir: 'build',
minify: true,
dts: true,
};
});
Loading

0 comments on commit 130f563

Please sign in to comment.