/subpath-imports-typescript

Example of TypeScript project with Subpath Imports

Primary LanguageTypeScript

Example of TypeScript Project with Subpath Imports

An example code for the article Setting up Subpath Imports in a TypeScript Project.

How to run

  1. Clone the repo

    git clone https://github.com/vitalets/subpath-imports-typescript.git
    
  2. Change directory to subpath-imports-typescript

    cd subpath-imports-typescript
    
  3. Install dependencies

    npm install
    
  4. Run commands:

  • npm run tsc - type-check the entire project
  • npm run test - run tests against the actual code in src
  • npm run build - compile the code from src into the dist directory
  • npm start - run the project from the dist directory
  • npm run tsx - run the project with tsx