Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

delete-publishconfig-directory

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

delete-publishconfig-directory

Deletes the directory field from publishConfig.

  • 1.0.0
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
10
increased by400%
Maintainers
1
Weekly downloads
 
Created
Source

Delete publishConfig Directory

Delete publishConfig Directory is a tool for use in conjunction with Changesets and Clean Publish.

When using the two of them together, Clean Publish doesn't delete the directory field from the publishConfig field in your package's package.json. This causes Changesets to try and navigate two directories down from the root of your package, causing a failure to publish.

Delete publishConfig Directory prevents this by deleting the extra field from your cleaned package.json.

Install

Install it via your NodeJS package manager of choice:

$ pnpm install -D delete-publishconfig-directory

Usage

Following the recipe from Clean Publish's Usage with pnpm workspaces, update your package.json to include:

{
  "publishConfig": {
    "directory": "package"
  },
  "scripts": {
    "prepublishOnly": "rm -rf ./package && clean-publish && delete-publishconfig-directory",
    "postpublish": "rm -rf ./package"
  }
}

📝 License

Copyright © 2023 Richard Harrah.
This project is MIT licensed.

Keywords

FAQs

Package last updated on 12 Feb 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc