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.

Source
npmnpm
Version
0.3.0
Version published
Weekly downloads
7
-78.12%
Maintainers
1
Weekly downloads
 
Created
Source

@mischnic/parcel-resolver-root

Change what / and ~ resolve to.

Requires parcel@2.0.0-nightly.585 or newer

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.1.0",
		"parcel": "2.0.0-nightly.574"
	},
	"@mischnic/parcel-resolver-root": {
		"/": "./src/a",
		"~": "./src/b"
	}
}

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

FAQs

Package last updated on 11 Apr 2021

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