All Projects β†’ typicode β†’ Pkg Ok

typicode / Pkg Ok

Licence: mit
πŸ‘Œ Checks paths and scripts defined in package.json before you publish

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Pkg Ok

Typac
install npm packages along with corresponding typings
Stars: ✭ 29 (-86.76%)
Mutual labels:  cli, package
Matrix Commander
simple but convenient CLI-based Matrix client app for sending and receiving
Stars: ✭ 90 (-58.9%)
Mutual labels:  publish, cli
Gub
CLI tool for create an npm package from any repos. 🐳
Stars: ✭ 31 (-85.84%)
Mutual labels:  cli, package
Aruba
Test command-line applications with Cucumber-Ruby, RSpec or Minitest. The most up to date documentation can be found on Cucumber.Pro (https://app.cucumber.pro/projects/aruba)
Stars: ✭ 900 (+310.96%)
Mutual labels:  cli, test
Semantic Release
πŸ“¦πŸš€ Fully automated version management and package publishing
Stars: ✭ 14,364 (+6458.9%)
Mutual labels:  publish, package
Start Server And Test
Starts server, waits for URL, then runs test command; when the tests end, shuts down server
Stars: ✭ 879 (+301.37%)
Mutual labels:  cli, test
Xa
Beautiful & Customizable logger ❀️
Stars: ✭ 78 (-64.38%)
Mutual labels:  cli, package
Wasm Pack
This tool seeks to be a one-stop shop for building and working with rust- generated WebAssembly that you would like to interop with JavaScript, in the browser or with Node.js. wasm-pack helps you build rust-generated WebAssembly packages that you could publish to the npm registry, or otherwise use alongside any javascript packages in workflows that you already use, such as webpack.
Stars: ✭ 3,848 (+1657.08%)
Mutual labels:  cli, package
Headlesschrome
A Go package for working with headless Chrome. Run interactive JavaScript commands on web pages with Go and Chrome.
Stars: ✭ 112 (-48.86%)
Mutual labels:  cli, package
Gest
πŸ‘¨β€πŸ’» A sensible GraphQL testing tool - test your GraphQL schema locally and in the cloud
Stars: ✭ 109 (-50.23%)
Mutual labels:  cli, test
Np
A better `npm publish`
Stars: ✭ 6,401 (+2822.83%)
Mutual labels:  publish, cli
Npmvet
A simple CLI tool for vetting npm package versions
Stars: ✭ 193 (-11.87%)
Mutual labels:  cli, package
Release It
πŸš€ Automate versioning and package publishing
Stars: ✭ 4,773 (+2079.45%)
Mutual labels:  publish, cli
Elm Package
Command line tool to share Elm libraries
Stars: ✭ 214 (-2.28%)
Mutual labels:  publish, package
Apio
🌱 Open source ecosystem for open FPGA boards
Stars: ✭ 366 (+67.12%)
Mutual labels:  cli, package
Gosearch
πŸ” Search the Go packages via command-line
Stars: ✭ 48 (-78.08%)
Mutual labels:  cli, package
Construct
A PHP project/micro-package generator for PDS compliant projects or micro-packages.
Stars: ✭ 257 (+17.35%)
Mutual labels:  cli, package
Cli
πŸ†‘πŸ“ Setup automated semver compliant package publishing
Stars: ✭ 272 (+24.2%)
Mutual labels:  publish, package
Npm Try
πŸš† Quickly try npm packages without writing boilerplate code.
Stars: ✭ 103 (-52.97%)
Mutual labels:  cli, package
Zson
δΈ“δΈΊζ΅‹θ―•δΊΊε‘˜ζ‰“ι€ ηš„JSONθ§£ζžε™¨
Stars: ✭ 181 (-17.35%)
Mutual labels:  path, test

pkg-ok Build Status npm

pkg-ok checks paths and scripts defined in package.json before you publish πŸ‘Œ

  • Ensures paths defined in main, bin, module, types, typings, es2015 and browser exist
  • Ensures bin scripts use cross-platform line endings

Usage

npm install pkg-ok --save-dev
// package.json
{
  "main": "oops_this_file_doesnt_exist.js",
  "scripts": {
    "prepublishOnly": "... && pkg-ok"
  }
}
npm publish
# Error!
# Since main file doesn't exist, publish is blocked 

Options

pkg-ok can be configured to check additional package.json fields or bin files

pkgOk --field someField --bin script.sh

API

const pkgDirectory = __dirname

pkgOk(pkgDirectory, {
  fields: ['someAdditonalField'],
  bin: ['someAdditionalScript.sh']
})

License

MIT

Patreon - Supporters ✨

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].