-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: Install kolmafia-types w/o alias
Due to a bug in NPM v7, `npm outdated` fails when kolmafia-types is aliased. To work around this, we install `kolmafia-types` by its name, and TypeScript's `compilerOptions.paths` field is used to resolve `kolmafia` to `kolmafia-types`. We also install: - kolmafia-types 0.1.1 (updated) - tsconfig-paths which is needed to run tests with Jasmine + ts-node See also: - GitHub issue for the NPM v7 bug: npm/cli#2800 - Description of the workaround: https://github.com/pastelmind/kolmafia-types/tree/v0.1.1#method-2-use-a-custom-path-to-resolve-kolmafia
- Loading branch information
1 parent
56d0026
commit 7e3e787
Showing
3 changed files
with
101 additions
and
20 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,7 @@ | |
"lint": "gts lint", | ||
"prerelease": "npm run clean && npm run build", | ||
"release": "ts-node ./node-scripts/release-to-branch.ts", | ||
"test": "jasmine --require=ts-node/register", | ||
"test": "jasmine --require=tsconfig-paths/register --require=ts-node/register", | ||
"posttest": "npm run lint" | ||
}, | ||
"repository": { | ||
|
@@ -41,13 +41,14 @@ | |
"fs-extra": "^9.1.0", | ||
"gts": "^3.1.0", | ||
"jasmine": "^3.6.4", | ||
"kolmafia": "npm:[email protected]", | ||
"kolmafia-stubs": "^0.1.0", | ||
"kolmafia-types": "^0.1.1", | ||
"mock-require": "^3.0.3", | ||
"rollup": "^2.41.2", | ||
"rollup-plugin-copy": "^3.4.0", | ||
"simple-git": "^2.36.2", | ||
"ts-node": "^9.1.1", | ||
"tsconfig-paths": "^3.9.0", | ||
"typescript": "^4.2.3" | ||
}, | ||
"dependencies": { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters