You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+17-10
Original file line number
Diff line number
Diff line change
@@ -1,17 +1,24 @@
1
1
*This guide is best-effort and will be improved as necessary.*
2
2
3
+
## Dev environment
4
+
5
+
Tools I use:
6
+
7
+
- yarn 3 for package management
8
+
- volta (optional, node version management)
9
+
3
10
## Features, bugfixes, and other code
4
11
5
-
We use npm scripts for building, testing, and linting. Read the scripts to become familiar with our build process. The big ones are:
12
+
We use package.json scripts for building, testing, and linting. Read the scripts to become familiar with our build process. The big ones are:
6
13
7
14
```
8
-
npm install
9
-
npm run build
10
-
npm run test-local
11
-
npm run lint-fix
15
+
yarn
16
+
yarn build
17
+
yarn test-local
18
+
yarn fmt
12
19
```
13
20
14
-
`npm prepare` is maintained so that anyone can install `ts-node` from git, which is useful for testing experimental branches and unreleased features.
21
+
`npm prepare`/ `yarn prepare`is maintained so that anyone can install `ts-node` from git, which is useful for testing experimental branches and unreleased features.
15
22
16
23
Source lives in `src` and is compiled to `dist`. Some shim files live outside of `src` so that they can be imported at
17
24
certain paths. For example, to allow users to import `ts-node/register`, we have `register/index.js` which is a shim to
@@ -21,20 +28,20 @@ compiled code in `dist`.
21
28
22
29
## Tests
23
30
24
-
Test cases are declared in `src/test/*.spec.ts`, and test fixtures live in `./tests`. They can be run with `npm run test-local`.
31
+
Test cases are declared in `src/test/*.spec.ts`, and test fixtures live in `./tests`. They can be run with `yarn test-local`.
25
32
26
33
To run a subset of tests:
27
34
28
35
```
29
36
# Use ava's --match flag to match the name of a test or suite
0 commit comments