Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@mischnic/parcel-resolver-root

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mischnic/parcel-resolver-root

Change what `/` and `~` resolve to.

latest
Source
npmnpm
Version
0.4.2
Version published
Maintainers
1
Created
Source

@mischnic/parcel-resolver-root

Change what / and ~ resolve to.

Usage:

Add a .parcelrc into your root directory (next to package.json):

{
	"extends": "@parcel/config-default",
	"resolvers": ["@mischnic/parcel-resolver-root", "..."]
}

You can set what ~ and / resolve to like this:

{
	"private": true,
	"name": "example",
	"version": "0.0.0",
	"scripts": {
		"build": "parcel build src/index.js"
	},
	"devDependencies": {
		"@mischnic/parcel-resolver-root": "^0.4.0",
		"parcel": "^2.0.0"
	},
	"@mischnic/parcel-resolver-root": {
		"/": "./src/a",
		"~": "./src/b"
	}
}

./src/a is relative to package.json.

FAQs

Package last updated on 20 Jun 2022

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