Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mxro/ts-node-files-test
Testing if the `--files` directive of `ts-node` works
https://github.com/mxro/ts-node-files-test
Last synced: about 2 months ago
JSON representation
Testing if the `--files` directive of `ts-node` works
- Host: GitHub
- URL: https://github.com/mxro/ts-node-files-test
- Owner: mxro
- Created: 2022-07-22T21:00:45.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-07-22T21:50:04.000Z (over 2 years ago)
- Last Synced: 2023-03-23T12:50:29.041Z (almost 2 years ago)
- Language: TypeScript
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ts-node-files-test
This repository contains a project testing if the `--files` directive of `ts-node` works.
## Usage
```
npm i
npm run node
```## Setup
The project contains both an `index.ts` file:
```typescript
import styles from './index.css';console.log("I'm in index.ts and I got the following styles:", styles);
```That imports the CSS file `index.css`. There is also a `typings.d.ts` file that contains a module declaration:
```typescript
declare module '*.css';
```## Findings
The project compiles successfully using `tsc` but does not run when using `ts-node`.