My latest articles:
- Advanced Bit Dependency Management and Configs
- Painless Monorepo Dependency Management with Bit
- The year 2021 for pnpm
- Trying pnpm on the JustAnswer multi-package repository
My videos:
Creates a production preview of a package
License: MIT License
There is going to be an infinite loop because package-preview is run before tests
--skip-prepublishOnly
)Instead of naming the folder .foo.preview
, name it smth like __preview__/foo
I'm trying to use a Lerna repo with this. Sometimes when I run tests there are changes across multiple modules which means that my tests won't work unless I publish all dependent modules first. Any tips on getting this working or is this out of scope for this module?
This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.
These updates are currently rate-limited. Click on a checkbox below to force their creation now.
fs-extra
, @types/fs-extra
)These updates have been manually edited so Renovate will no longer make changes. To discard all commits and start over, click on a checkbox.
tape
, @types/tape
)These updates have all been created already. Click a checkbox below to force a retry/rebase of any.
package.json
@pnpm/exec ^3.0.0
cross-spawn ^7.0.3
find-down ^0.1.4
fs-extra ^10.0.0
graceful-fs ^4.2.6
load-json-file ^6.2.0
meow ^9.0.0
mz ^2.7.0
rimraf-then ^1.0.1
unpack-stream ^6.0.0
write-json-file ^4.3.0
@types/fs-extra ^9.0.10
@types/mz ^2.7.3
@types/node 14.14.0
@types/tape ^4.13.0
execa ^5.0.0
rimraf ^3.0.2
tape 4
tempy ^1.0.1
ts-node ^9.1.1
tslint ^6.1.3
typescript ^4.2.4
node >=12
.travis.yml
node 12
node 14
node 15
Some toolings fail execution of prepublish/prepublishOnly to forbid publish.
I'm trying to use preview to test a submodule, as per this article:
https://jaketrent.com/post/import-parts-node-packages-slash/
Should this be possible? Can't tell if its a limitation of preview-package or I'm not building the package properly.
For context, I'm trying to make a module in my package available by requiring its path, e.g.
Instead of: require('myApp').start()
I would like require('myApp/start')
But I'm getting the error Cannot find module 'myApp/start'
I think I've achieved this by adding a start.js file that invokes the start method as: module.exports = app.start()
and I can execute it from command line via node src/start
.
Go up in the directory tree until the first directory that does not have parents with package.json
or node_modules
. If there is a package.json
or node_modules
in the system root folder, then fail
Currently it seems to pass thru
To enable Greenkeeper, you need to make sure that a commit status is reported on all branches. This is required by Greenkeeper because it uses your CI build statuses to figure out when to notify you about breaking changes.
Since we didn’t receive a CI status on the greenkeeper/initial
branch, it’s possible that you don’t have CI set up yet. We recommend using Travis CI, but Greenkeeper will work with every other CI service as well.
If you have already set up a CI for this repository, you might need to check how it’s configured. Make sure it is set to run on all new branches. If you don’t want it to run on absolutely every branch, you can whitelist branches starting with greenkeeper/
.
Once you have installed and configured CI on this repository correctly, you’ll need to re-trigger Greenkeeper’s initial pull request. To do this, please delete the greenkeeper/initial
branch in this repository, and then remove and re-add this repository to the Greenkeeper integration’s white list on Github. You'll find this list on your repo or organization’s settings page, under Installed GitHub Apps.
The other flag might not be needed
Branch |
Build failing |
---|---|
Dependency | @types/fs-extra |
Current Version | 4.0.6 |
Type | dependency |
This version is covered by your current version range and after updating it in your project the build failed.
@types/fs-extra is a direct dependency of this project, and it is very likely causing it to break. If other packages depend on yours, this update is probably also breaking those in turn.
There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot
The pre/post install scripts
Probably not. At least by default not. But there should be a way to support this. Maybe through a flag or a package-preview
-specific lifecycle event.
If the package has a preinstall script, it makes sense to remove its node_modules before every creation of the preview
! Cannot convert undefined or null to object
Error: Exit code: 1
at ChildProcess.proc.on (/Users/dave/code/nm-prune/node_modules/@pnpm/exec/lib/index.js:46:35)
at emitTwo (events.js:126:13)
at ChildProcess.emit (events.js:214:7)
at maybeClose (internal/child_process.js:925:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
opts
passed in are:
{ args: [ 'install', '--production' ],
cwd: '/Users/dave/__package_previews__/nm-prune',
env: { PREVIEW_IS_RUNNING: '/Users/dave/code/nm-prune' } }
now that v6 of pnpm
is released as latest, i've found that my projects that use package-preview
have been breaking upon installation of pnpm
with errors like the following: https://github.com/travi/javascript-scaffolder/runs/2304674064?check_suite_focus=true#step:5:535
i found that the behavior of installing the latest pnpm
is due to the dependency on @pnpm/self-installer
and was able to use the PNPM_VERSION
environment variaable mentioned in Configuring to pin pnpm to latest-5
.
it would be great if package-preview
were compatible with the version of pnpm
installed by default. i also see that @pnpm/self-installer
is deprecated and the repo is archived, so this update would likely require adjustment to use the modern approach.
Branch |
Build failing |
---|---|
Dependency | @pnpm/exec |
Current Version | 1.0.2 |
Type | dependency |
This version is covered by your current version range and after updating it in your project the build failed.
@pnpm/exec is a direct dependency of this project, and it is very likely causing it to break. If other packages depend on yours, this update is probably also breaking those in turn.
The new version differs by 6 commits.
4ea7e79
chore(release): 1.1.0
528fe3e
revert: "ci: test on Node.js 9"
32c0d78
feat: custom env
a94fc90
docs(readme): fix example
05f484d
ci: test on Node.js 9
abe8050
chore: use package-preview
See the full diff
There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot
There is an error with this repository's Renovate configuration that needs to be fixed. As a precaution, Renovate will stop PRs until it is resolved.
Error type: Preset name not found within published preset config (monorepo:angularmaterial). Note: this is a nested preset so please contact the preset author if you are unable to fix it yourself.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.