Skip to content

Commit

Permalink
chore: package service
Browse files Browse the repository at this point in the history
  • Loading branch information
PhearZero committed May 10, 2024
1 parent d913cf5 commit 54edf5a
Show file tree
Hide file tree
Showing 5 changed files with 72 additions and 9 deletions.
51 changes: 50 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions services/liquid-auth-api-js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,14 @@
"files": [
"./src/**/*.md"
],
"main": "dist/src/index.js",
"types": "dist/src/index.d.ts",
"exports": {
".": {
"default": "./dist/src/index.js",
"types": "./dist/src/index.d.ts"
}
},
"scripts": {
"build": "nest build",
"format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,9 @@ import {
ApiUnauthorizedResponse,
} from '@nestjs/swagger';
import { User } from '../auth/auth.schema.js';
// TODO: Make doc loader utility
const filePath = join(process.cwd(), './src/assertion');
const requestDescription = readFileSync(
join(filePath, 'assertion.controller.post.request.md'),
).toString();
const responseDescription = readFileSync(
join(filePath, 'assertion.controller.post.response.md'),
).toString();
// TODO: make a loader for descriptions
const requestDescription = '';
const responseDescription = '';

/**
* Assertion Controller
Expand Down
6 changes: 6 additions & 0 deletions services/liquid-auth-api-js/src/auth/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
export * from './auth.controller.js';
export * from './auth.guard.js';
export * from './auth.module.js';
export * from './auth.schema.js';
export * from './auth.service.js';
export * from './session.schema.js';
5 changes: 5 additions & 0 deletions services/liquid-auth-api-js/src/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
export * from './auth/index.js';
export * from './app.module.js';
export * from './app.service.js';
export * from './sentry.filter.js';
export * from './adapters/redis-io.adapter.js';

0 comments on commit 54edf5a

Please sign in to comment.