Skip to content

Commit

Permalink
[ts] use tsc-alias to resolve paths in build output
Browse files Browse the repository at this point in the history
  • Loading branch information
mrhyde committed May 11, 2023
1 parent 226500b commit f375725
Show file tree
Hide file tree
Showing 4 changed files with 185 additions and 21 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,22 +17,31 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Removed

## [2.0.1] - 2023-05-11

### Fixed

- Resolved `ERR_UNSUPPORTED_DIR_IMPORT` error for module import by resolving full path in build output with `tsc-alias`

## [2.0.0] - 2023-05-08

### Breaking Changes

- The replacement of `fetch` with `got` resulted in the loss of support for browsers.

### Added

- CHANGELOG.md file in the repository
- Retrieve and retain necessary cookies to access specific API endpoints
- Helper function to generate tomorrow date for tests 87199676f87df57d7626f4fe39740f2abe36c52a

### Fixed

- `CheapestFares.outbound.minFare` and `...maxFare` can be null 86d49f21f24c1d846bd138a72679cf791ec7a611
- `FareType` can be undefined 0abff91974ffe5957d4598799a08abaf47ace067

### Changed

- Updated headings in documentation and some other cosmetic changes
- Changed prettier printWidth to 120 symbols
- Set tests timeouts for `vitest` to 30 seconds
Expand Down
181 changes: 165 additions & 16 deletions package-lock.json

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

11 changes: 7 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,17 +35,19 @@
"build"
],
"scripts": {
"build": "tsc --project tsconfig.json",
"build": "run-s compile fix-alias",
"clean": "rimraf build",
"compile": "tsc --project tsconfig.json",
"fix-alias": "tsc-alias -p tsconfig.json",
"format:check": "prettier --check source/**/*.ts",
"format:fix": "prettier --write source/**/*.ts",
"lint:fix": "run-s \"lint -- --fix\"",
"lint": "eslint . --ext .ts",
"lint:fix": "run-s \"lint -- --fix\"",
"prepublishOnly": "run-s clean build",
"preversion": "run-s clean lint test build",
"test": "vitest run",
"test:integration": "vitest run integration --coverage",
"test:unit": "vitest run unit --coverage",
"test": "vitest run"
"test:unit": "vitest run unit --coverage"
},
"prettier": {
"printWidth": 120,
Expand Down Expand Up @@ -77,6 +79,7 @@
"prettier": "2.8.8",
"rimraf": "5.0.0",
"ts-node": "10.9.1",
"tsc-alias": "1.8.6",
"typescript": "5.0.4",
"vitest": "0.31.0"
},
Expand Down
5 changes: 4 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,8 @@
"declaration": true,
"types": ["vitest/globals"]
},
"include": ["source", "types"]
"include": ["source", "types"],
"tsc-alias": {
"resolveFullPaths": true
}
}

0 comments on commit f375725

Please sign in to comment.