Socket
Book a DemoInstallSign in
Socket

@joycostudio/safearea

Package Overview
Dependencies
Maintainers
0
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@joycostudio/safearea

Keep elements contained inside a safe area.

0.0.5
latest
npmnpm
Version published
Weekly downloads
6
-14.29%
Maintainers
0
Weekly downloads
ย 
Created
Source

JOYCO Logoย ย JOYCO | Library Template

A generic library template starter for brand new libraries.

FeaturesDescription
๐Ÿš€ Quick SetupInitialize your library with a single command using pnpm setup:template
๐Ÿ“ฆ Modern Build SystemBuilt with tsup for fast, modern builds supporting ESM and CJS
๐Ÿ”„ Automatic ReleasesOptional automated publishing and version management with changesets
๐Ÿ” PR PreviewOptional package preview builds for every PR and commit with pkg.pr.new
๐ŸŽฏ TypeScript ReadyFull TypeScript support with strict type checking
๐Ÿงน Code QualityESLint and Prettier pre-configured for code quality
โš›๏ธ React SupportReact support with proper peer dependencies React 19 + React Compiler ready
๐Ÿ”’ Type SafetyStrict TypeScript configuration for better type safety

โ—๏ธ MUST DO ON TEMPLATE FORK โ—๏ธ

This template has sample data by default. So run the setup script as soon as you fork & clone.

pnpm setup:template

This will fill package information and install deps for you. Remember to commit.

If you enable PR & commit package preview you need to install PKG.PR.NEW on the target repository.

package.json defaults

  • author: joyco.studio
  • publishConfig.access: private
  • version: 0.0.0
  • license: ISC

๐Ÿ‘€ Good to know

If you DON't need react as a peer dependency you NEED to delete it.

# 1. Remove both the devDependencies and peerDependencies
pnpm remove @types/react react

Then manually remove the peerDependencies section from package.json and also check eslint.config.js, tsconfig.json.


๐Ÿค– Automatic Workflows

This template comes with two GitHub Actions workflows (currently disabled for convenience):

  • Release Workflow (.github/workflows/release.yml.disabled): Automates the release process using Changesets. When enabled, it will automatically create release pull requests and publish to npm when changes are pushed to the main branch.

  • Publish Any Commit (.github/workflows/publish-any-commit.yml.disabled): A utility workflow that can build and publish packages for any commit or pull request.

To enable these workflows, simply remove the .disabled extension from the workflow files in the .github/workflows/ directory. We recommend enabling them to automate your package's release process.


๐Ÿฆ‹ Version Management

This library uses Changesets to manage versions and publish releases. Here's how to use it:

Adding a changeset

When you make changes that need to be released:

pnpm changeset

This will prompt you to:

  • Select which packages you want to include in the changeset
  • Choose whether it's a major/minor/patch bump
  • Provide a summary of the changes

Creating a release

To create a new version and update the changelog:

# 1. Create new versions of packages
pnpm version:package

# 2. Release (builds and publishes to npm)
pnpm release

Remember to commit all changes after creating a release.

FAQs

Package last updated on 17 Mar 2025

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with โšก๏ธ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.