Skip to content

Instantly share code, notes, and snippets.

7zip-bin-linux@^1.0.3:
id: registry.npmjs.org/7zip-bin-linux/1.0.3
shasum: 66724d7bb7526381574393888f62566ed537151c
tarball: 'https://registry.npmjs.org/7zip-bin-linux/-/7zip-bin-linux-1.0.3.tgz'
7zip-bin-mac@^1.0.1:
id: registry.npmjs.org/7zip-bin-mac/1.0.1
shasum: 3e68778bbf0926adc68159427074505d47555c02
tarball: 'https://registry.npmjs.org/7zip-bin-mac/-/7zip-bin-mac-1.0.1.tgz'
7zip-bin-win@^2.0.2:
id: registry.npmjs.org/7zip-bin-win/2.0.2
@zkochan
zkochan / testimonials.md
Created June 30, 2017 08:20
pnpm testimonials
zkochan@zkochan:~/src/test/vscode1$ npm i vscode-ripgrep
> vscode-ripgrep@0.0.12 postinstall /home/zkochan/src/test/node_modules/vscode-ripgrep
> node ./dist/postinstall.js
module.js:471
throw err;
^
Error: Cannot find module 'github-releases'
@zkochan
zkochan / pnpmfile.js
Created September 2, 2017 13:08
overriding resolve
'use strict'
module.exports = {
hooks: {
readPackage
}
}
function readPackage (pkg) {
if (!pkg.dependencies) return pkg
@zkochan
zkochan / How peers are resolved 1.md
Last active March 27, 2018 22:01
How peers are resolved
- .registry.npmjs.org / foo / 1.0.0 / node_modules
  hard link to the specific foo package in the store
  - foo
  dependencies of foo, symlinks to folders where these deps are resolved with their deps
  - qux
  - plugh
const chalk = require('chalk')
var diff = require('ansi-diff')({
// if you want to support word wrapping, provide the terminal width
width: process.stdout.columns
})
// render now
render1()
importers:
.:
devDependencies:
add-stream: 1.0.0
commitizen: 2.10.1
conventional-changelog: 2.0.3
cz-customizable: 5.2.0
ejs: 2.6.1
husky: 1.0.0-rc.14
jase: 1.2.0
@zkochan
zkochan / package.json
Last active July 20, 2019 19:22
How to force users of a repository to use pnpm for installation
{
"scripts": {
"preinstall": "node --eval \"!process.env.npm_config_user_agent.startsWith('pnpm/')&&(console.log('Use `pnpm install` to install dependencies in this repository')||true)&&process.exit(1)\""
}
}
@zkochan
zkochan / overrides.json
Created August 30, 2019 20:27
overrides for pnpmfile.js
{
"jest-resolve": {
"peerDependencies": {
"jest-haste-map": "*"
}
},
"winston-transport": {
"peerDependencies": {
"logform": "*"
}
hoistPattern:
- '*'
hoistedAliases:
github.com/adamwdraper/Numeral-js/a7a2dedde724ee6c74cf3370b958c06d19c54659:
- numeral
registry.npmjs.org/@babel/code-frame/7.5.5:
- '@babel/code-frame'
registry.npmjs.org/@babel/generator/7.6.3:
- '@babel/generator'
registry.npmjs.org/@babel/helper-annotate-as-pure/7.0.0: