There is more information about TypeScript under JavaScript Standard Style: eslint-config-standard-with-typescript
import v1 from '@api/v1'
instead of:
import v1 from '../src/api/v1'
The bunch of the following modules makes this possible:
- tsconfig-paths for development
- module-alias for production
See test/chai.ts
Before all:
- Start your mongoDB server
- Run next:
git clone git@github.com:lobanov-oleh/test-ds.git
cd test-ds
npm i
npm run build
then
npm start
or
npm test