Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: create read-package-hook package
- Loading branch information
Showing
19 changed files
with
519 additions
and
263 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@pnpm/hooks.read-package-hook": major | ||
--- | ||
|
||
First release. |
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
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
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
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
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# @pnpm/hooks.read-package-hook | ||
|
||
> Creates the default package reader hook used by pnpm | ||
## Installation | ||
|
||
```sh | ||
pnpm add @pnpm/hooks.read-package-hook | ||
``` | ||
|
||
## License | ||
|
||
MIT |
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
const config = require('../../jest.config.js'); | ||
|
||
module.exports = Object.assign({}, config, {}); |
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 |
---|---|---|
@@ -0,0 +1,51 @@ | ||
{ | ||
"name": "@pnpm/hooks.read-package-hook", | ||
"version": "0.0.0", | ||
"description": "Creates the default package reader hook used by pnpm", | ||
"main": "lib/index.js", | ||
"types": "lib/index.d.ts", | ||
"files": [ | ||
"lib", | ||
"!*.map" | ||
], | ||
"scripts": { | ||
"lint": "eslint src/**/*.ts test/**/*.ts", | ||
"_test": "jest", | ||
"test": "pnpm run compile && pnpm run _test", | ||
"prepublishOnly": "pnpm run compile", | ||
"compile": "tsc --build && pnpm run lint --fix" | ||
}, | ||
"repository": "https://github.com/pnpm/pnpm/blob/main/packages/hooks.read-package-hook", | ||
"keywords": [ | ||
"pnpm7" | ||
], | ||
"engines": { | ||
"node": ">=14.6" | ||
}, | ||
"license": "MIT", | ||
"bugs": { | ||
"url": "https://github.com/pnpm/pnpm/issues" | ||
}, | ||
"homepage": "https://github.com/pnpm/pnpm/blob/main/packages/hooks.read-package-hook#readme", | ||
"dependencies": { | ||
"@pnpm/matcher": "workspace:*", | ||
"@pnpm/parse-overrides": "workspace:*", | ||
"@pnpm/parse-wanted-dependency": "workspace:*", | ||
"@pnpm/types": "workspace:*", | ||
"@yarnpkg/extensions": "1.2.0-rc.1", | ||
"normalize-path": "^3.0.0", | ||
"ramda": "npm:@pnpm/ramda@0.28.1", | ||
"semver": "^7.3.7" | ||
}, | ||
"devDependencies": { | ||
"@pnpm/hooks.read-package-hook": "workspace:*", | ||
"@types/normalize-path": "^3.0.0", | ||
"@types/ramda": "0.28.15", | ||
"@types/semver": "7.3.10", | ||
"@yarnpkg/core": "4.0.0-rc.14" | ||
}, | ||
"funding": "https://opencollective.com/pnpm", | ||
"exports": { | ||
".": "./lib/index.js" | ||
} | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
export { createReadPackageHook } from './createReadPackageHook' |
2 changes: 1 addition & 1 deletion
2
...est/install/createPackageExtender.test.ts → ...e-hook/test/createPackageExtender.test.ts
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
2 changes: 1 addition & 1 deletion
2
...stall/createPeerDependencyPatcher.test.ts → .../test/createPeerDependencyPatcher.test.ts
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
2 changes: 1 addition & 1 deletion
2
...st/install/createVersionOverrider.test.ts → ...-hook/test/createVersionOverrider.test.ts
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
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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
"extends": "@pnpm/tsconfig", | ||
"compilerOptions": { | ||
"outDir": "lib", | ||
"rootDir": "src" | ||
}, | ||
"include": [ | ||
"src/**/*.ts", | ||
"../../typings/**/*.d.ts" | ||
], | ||
"references": [ | ||
{ | ||
"path": "../matcher" | ||
}, | ||
{ | ||
"path": "../parse-overrides" | ||
}, | ||
{ | ||
"path": "../parse-wanted-dependency" | ||
}, | ||
{ | ||
"path": "../types" | ||
} | ||
] | ||
} |
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"extends": "./tsconfig.json", | ||
"include": [ | ||
"src/**/*.ts", | ||
"test/**/*.ts", | ||
"../../typings/**/*.d.ts" | ||
] | ||
} |
Oops, something went wrong.