Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(parcel-core): only allow client-side env to be included #493

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion cli/create-plasmo/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "create-plasmo",
"version": "0.66.0",
"version": "0.67.0",
"description": "Create Plasmo Framework Browser Extension",
"main": "dist/index.js",
"bin": "bin/index.mjs",
Expand Down
3 changes: 2 additions & 1 deletion cli/plasmo/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "plasmo",
"version": "0.66.0",
"version": "0.67.0",
"description": "The Plasmo Platform CLI",
"main": "dist/index.js",
"types": "dist/type.d.ts",
Expand Down Expand Up @@ -41,6 +41,7 @@
"@parcel/watcher": "2.1.0",
"@plasmohq/init": "workspace:*",
"@plasmohq/parcel-config": "workspace:*",
"@plasmohq/parcel-core": "workspace:*",
"archiver": "5.3.1",
"buffer": "6.0.3",
"chalk": "5.2.0",
Expand Down
5 changes: 2 additions & 3 deletions cli/plasmo/src/features/helpers/create-parcel-bundler.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
import { Parcel } from "@parcel/core"
import ParcelFS from "@parcel/fs"
import ParcelPM from "@parcel/package-manager"
import { emptyDir, ensureDir, readJson, writeJson } from "fs-extra"
import { dirname, join, resolve } from "path"

import { hasFlag } from "@plasmo/utils/flags"

import { Parcel, ParcelOptions } from "@plasmohq/parcel-core"

import type { PlasmoManifest } from "~features/manifest-factory/base"

import { getPackageManager } from "./package-manager"

type ParcelOptions = Partial<ConstructorParameters<typeof Parcel>[0]>

const PackageInstallerMap = {
npm: ParcelPM.Npm,
yarn: ParcelPM.Yarn,
Expand Down
2 changes: 1 addition & 1 deletion examples
2 changes: 1 addition & 1 deletion packages/parcel-config/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@plasmohq/parcel-config",
"version": "0.32.1",
"version": "0.32.2",
"license": "MIT",
"repository": {
"type": "git",
Expand Down
3 changes: 3 additions & 0 deletions packages/parcel-core/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
node_modules

dist/
49 changes: 49 additions & 0 deletions packages/parcel-core/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
{
"name": "@plasmohq/parcel-core",
"version": "0.0.0",
"description": "Plasmo Parcel Core Fork",
"files": [
"dist"
],
"main": "dist/index.js",
"types": "src/types.ts",
"scripts": {
"prepublishOnly": "pnpm build",
"build": "tsup --minify --clean",
"dev": "tsup --sourcemap --watch"
},
"author": "Plasmo Corp. <foss@plasmo.com>",
"homepage": "https://docs.plasmo.com/",
"engines": {
"parcel": ">= 2.7.0"
},
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/PlasmoHQ/plasmo.git"
},
"devDependencies": {
"@plasmo/config": "workspace:*",
"@plasmo/utils": "workspace:*",
"@parcel/types": "2.8.3",
"tsup": "6.6.3"
},
"dependencies": {
"@parcel/core": "2.8.3",
"@parcel/cache": "2.8.3",
"@parcel/diagnostic": "2.8.3",
"@parcel/events": "2.8.3",
"@parcel/fs": "2.8.3",
"@parcel/graph": "2.8.3",
"@parcel/hash": "2.8.3",
"@parcel/logger": "2.8.3",
"@parcel/package-manager": "2.8.3",
"@parcel/plugin": "2.8.3",
"@parcel/source-map": "2.1.1",
"@parcel/types": "2.8.3",
"@parcel/utils": "2.8.3",
"@parcel/workers": "2.8.3",
"abortcontroller-polyfill": "1.7.5",
"nullthrows": "1.1.1"
}
}