Skip to content

Commit

Permalink
Updated package.json files
Browse files Browse the repository at this point in the history
ordering

yarn install

hoisting packages to support @parcel/babel-preset

added a couple more dev packages

ensuring required phantom dependencies are hoisted correctly

added missing peer dependencies

reverted some files

removing pnpm specific things
  • Loading branch information
alshdavid committed Nov 8, 2022
1 parent a5cd0ec commit 119a128
Show file tree
Hide file tree
Showing 52 changed files with 314 additions and 76 deletions.
1 change: 1 addition & 0 deletions .flowconfig
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
<PROJECT_ROOT>/packages/core/integration-tests/test/input/**
<PROJECT_ROOT>/packages/core/integration-tests/test/integration/babel-strip-flow-types/**
<PROJECT_ROOT>/packages/core/integration-tests/test/integration/diagnostic-sourcemap/**
.*/node_modules/resolve/**/.*

[untyped]
.*/node_modules/graphql/error/GraphQLError.js.flow
Expand Down
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@
},
"devDependencies": {
"@babel/core": "^7.12.0",
"@octokit/core": "3.6.0",
"@parcel/eslint-config": "2.7.0",
"@parcel/babel-preset": "2.7.0",
"@khanacademy/flow-to-ts": "^0.5.2",
"@napi-rs/cli": "^2.6.2",
"@parcel/babel-register": "2.7.0",
Expand Down
1 change: 1 addition & 0 deletions packages/bundlers/default/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"@parcel/graph": "2.7.0",
"@parcel/hash": "2.7.0",
"@parcel/plugin": "2.7.0",
"@parcel/types": "2.7.0",
"@parcel/utils": "2.7.0",
"nullthrows": "^1.1.1"
}
Expand Down
2 changes: 2 additions & 0 deletions packages/core/cache/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,14 @@
"@parcel/fs": "2.7.0",
"@parcel/logger": "2.7.0",
"@parcel/utils": "2.7.0",
"@parcel/types": "2.7.0",
"lmdb": "2.5.2"
},
"peerDependencies": {
"@parcel/core": "^2.7.0"
},
"devDependencies": {
"@parcel/core": "^2.7.0",
"idb": "^5.0.8"
},
"browser": {
Expand Down
1 change: 1 addition & 0 deletions packages/core/codeframe/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
}
},
"dependencies": {
"@parcel/diagnostic": "2.7.0",
"chalk": "^4.1.0"
},
"devDependencies": {
Expand Down
3 changes: 3 additions & 0 deletions packages/core/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
"@parcel/source-map": "^2.1.1",
"@parcel/types": "2.7.0",
"@parcel/utils": "2.7.0",
"@parcel/watcher": "2.0.7",
"@parcel/workers": "2.7.0",
"abortcontroller-polyfill": "^1.1.9",
"base-x": "^3.0.8",
Expand All @@ -50,6 +51,8 @@
"semver": "^5.7.1"
},
"devDependencies": {
"@parcel/config-default": "2.7.0",
"@parcel/test-utils": "2.7.0",
"graphviz": "^0.0.9",
"tempy": "^0.2.1"
},
Expand Down
1 change: 1 addition & 0 deletions packages/core/fs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
"check-ts": "tsc --noEmit index.d.ts"
},
"dependencies": {
"@parcel/core": "^2.7.0",
"@parcel/fs-search": "2.7.0",
"@parcel/types": "2.7.0",
"@parcel/utils": "2.7.0",
Expand Down
1 change: 1 addition & 0 deletions packages/core/graph/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"node": ">= 12.0.0"
},
"dependencies": {
"@parcel/types": "2.7.0",
"@parcel/utils": "2.7.0",
"nullthrows": "^1.1.1"
}
Expand Down
9 changes: 9 additions & 0 deletions packages/core/integration-tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,14 @@
"@babel/preset-typescript": "^7.14.5",
"@jetbrains/kotlinc-js-api": "^1.2.12",
"@mdx-js/react": "^1.5.3",
"@parcel/core": "2.7.0",
"@parcel/diagnostic": "2.7.0",
"@parcel/logger": "2.7.0",
"@parcel/package-manager": "2.7.0",
"@parcel/source-map": "2.1.1",
"@parcel/test-utils": "2.7.0",
"@parcel/types": "2.7.0",
"@parcel/utils": "2.7.0",
"autoprefixer": "^10.4.0",
"chalk": "^4.1.0",
"codecov": "^3.0.0",
Expand All @@ -42,6 +50,7 @@
"ncp": "^2.0.0",
"nib": "^1.1.2",
"node-elm-compiler": "^5.0.5",
"nullthrows": "^1.1.1",
"parcel": "2.7.0",
"postcss": "^8.4.5",
"postcss-custom-properties": "^12.1.2",
Expand Down
3 changes: 2 additions & 1 deletion packages/core/logger/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
},
"dependencies": {
"@parcel/diagnostic": "2.7.0",
"@parcel/events": "2.7.0"
"@parcel/events": "2.7.0",
"@parcel/types": "2.7.0"
}
}
1 change: 1 addition & 0 deletions packages/core/package-manager/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
"semver": "^5.7.1"
},
"devDependencies": {
"@parcel/core": "2.7.0",
"command-exists": "^1.2.6",
"cross-spawn": "^6.0.4",
"nullthrows": "^1.1.1",
Expand Down
1 change: 1 addition & 0 deletions packages/core/parcel/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
"@parcel/reporter-cli": "2.7.0",
"@parcel/reporter-dev-server": "2.7.0",
"@parcel/utils": "2.7.0",
"@parcel/types": "2.7.0",
"chalk": "^4.1.0",
"commander": "^7.0.0",
"get-port": "^4.2.0",
Expand Down
3 changes: 3 additions & 0 deletions packages/core/register/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,8 @@
"@parcel/fs": "2.7.0",
"@parcel/package-manager": "2.7.0",
"pirates": "^4.0.0"
},
"devDependencies": {
"@parcel/types": "2.7.0"
}
}
4 changes: 3 additions & 1 deletion packages/core/test-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,15 @@
"@parcel/core": "2.7.0",
"@parcel/fs": "2.7.0",
"@parcel/package-manager": "2.7.0",
"@parcel/types": "2.7.0",
"@parcel/utils": "2.7.0",
"@parcel/workers": "2.7.0",
"chalk": "^4.1.0",
"ncp": "^2.0.0",
"nullthrows": "^1.1.1",
"posthtml": "^0.16.5",
"posthtml-parser": "^0.10.1",
"resolve": "^1.12.0",
"resolve": "^1.22.1",
"ws": "^7.0.0"
}
}
4 changes: 4 additions & 0 deletions packages/core/utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@
},
"devDependencies": {
"@iarna/toml": "^2.2.0",
"@mischnic/json-sourcemap": "^0.1.0",
"@parcel/fs": "2.7.0",
"@parcel/test-utils": "2.7.0",
"@parcel/types": "2.7.0",
"ansi-html-community": "0.0.8",
"clone": "^2.1.1",
"fast-glob": "3.1.1",
Expand Down
1 change: 0 additions & 1 deletion packages/core/utils/src/shared-buffer.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// @flow
/* global MessageChannel:readonly */

export let SharedBuffer: Class<ArrayBuffer> | Class<SharedArrayBuffer>;

Expand Down
3 changes: 3 additions & 0 deletions packages/core/workers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@
"peerDependencies": {
"@parcel/core": "^2.7.0"
},
"devDependencies": {
"@parcel/core": "^2.7.0"
},
"browser": {
"./src/cpuCount.js": false,
"./src/process/ProcessWorker.js": false,
Expand Down
9 changes: 5 additions & 4 deletions packages/dev/babel-preset/index.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
module.exports = api => {
let name = api.caller(caller => caller && caller.name);

if (name === 'parcel') {
return {
presets: [require('@babel/preset-flow')],
plugins: [
// Inline the value of PARCEL_BUILD_ENV during self builds.
// Parcel does not do this itself for node targets...
[
'babel-plugin-transform-inline-environment-variables',
require('babel-plugin-transform-inline-environment-variables'),
{include: ['PARCEL_BUILD_ENV']},
],
'babel-plugin-minify-dead-code-elimination',
require('babel-plugin-minify-dead-code-elimination'),
],
};
}
Expand Down Expand Up @@ -43,7 +44,7 @@ module.exports = api => {
// Inline the value of PARCEL_BUILD_ENV during production builds so that
// it can be removed through dead code elimination below
[
'babel-plugin-transform-inline-environment-variables',
require('babel-plugin-transform-inline-environment-variables'),
{
include: [
'PARCEL_BUILD_ENV',
Expand All @@ -55,7 +56,7 @@ module.exports = api => {
],
},
],
'babel-plugin-minify-dead-code-elimination',
require('babel-plugin-minify-dead-code-elimination'),
],
},
},
Expand Down
5 changes: 4 additions & 1 deletion packages/dev/babel-register/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,12 @@
"dependencies": {
"@babel/register": "^7.4.4",
"@parcel/babel-preset": "2.7.0",
"resolve": "^1.12.0"
"resolve": "^1.22.1"
},
"peerDependencies": {
"@babel/core": "^7.0.0"
},
"devDependencies": {
"@babel/core": "^7.0.0"
}
}
2 changes: 1 addition & 1 deletion packages/dev/eslint-config-browser/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
},
"peerDependencies": {
"@babel/core": "^7.0.0",
"eslint": ">= 7.0.0"
"eslint": "^7.32.0"
}
}
6 changes: 5 additions & 1 deletion packages/dev/eslint-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@
},
"peerDependencies": {
"@babel/core": "^7.0.0",
"eslint": ">= 7.0.0"
"eslint": "^7.32.0"
},
"devDependencies": {
"@babel/core": "^7.0.0",
"eslint": "^7.32.0"
}
}
3 changes: 1 addition & 2 deletions packages/dev/eslint-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,12 @@
"private": true,
"version": "2.7.0",
"main": "index.js",
"scripts": {},
"dependencies": {
"read-pkg-up": "^5.0.0"
},
"devDependencies": {
"@babel/core": "^7.0.0",
"@babel/eslint-parser": "^7.12.1",
"eslint": "^7.20.0"
"eslint": "^7.32.0"
}
}
1 change: 1 addition & 0 deletions packages/namers/default/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"dependencies": {
"@parcel/diagnostic": "2.7.0",
"@parcel/plugin": "2.7.0",
"@parcel/types": "2.7.0",
"nullthrows": "^1.1.1"
}
}
1 change: 1 addition & 0 deletions packages/optimizers/image/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
"detect-libc": "^1.0.3"
},
"devDependencies": {
"@types/node": "^12.20.55",
"@napi-rs/cli": "^2.6.2",
"tiny-benchy": "^1.0.2"
}
Expand Down
1 change: 0 additions & 1 deletion packages/optimizers/image/src/ImageOptimizer.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// @flow
import path from 'path';
import process from 'process';
import {Optimizer} from '@parcel/plugin';
import {blobToBuffer} from '@parcel/utils';
import {md} from '@parcel/diagnostic';
Expand Down
1 change: 1 addition & 0 deletions packages/packagers/css/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"dependencies": {
"@parcel/plugin": "2.7.0",
"@parcel/source-map": "^2.1.1",
"@parcel/types": "2.7.0",
"@parcel/utils": "2.7.0",
"nullthrows": "^1.1.1"
},
Expand Down
1 change: 1 addition & 0 deletions packages/packagers/js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
"@parcel/plugin": "2.7.0",
"@parcel/source-map": "^2.1.1",
"@parcel/utils": "2.7.0",
"@parcel/types": "2.7.0",
"globals": "^13.2.0",
"nullthrows": "^1.1.1"
}
Expand Down
4 changes: 4 additions & 0 deletions packages/reporters/bundle-buddy/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,9 @@
},
"dependencies": {
"@parcel/plugin": "2.7.0"
},
"devDependencies": {
"@parcel/plugin": "2.7.0",
"@parcel/types": "2.7.0"
}
}
4 changes: 4 additions & 0 deletions packages/reporters/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,14 @@
"@parcel/plugin": "2.7.0",
"@parcel/types": "2.7.0",
"@parcel/utils": "2.7.0",
"@parcel/diagnostic": "2.7.0",
"@parcel/fs": "2.7.0",
"@parcel/package-manager": "2.7.0",
"chalk": "^4.1.0",
"term-size": "^2.2.1"
},
"devDependencies": {
"@parcel/test-utils": "2.7.0",
"filesize": "^6.1.0",
"nullthrows": "^1.1.1",
"ora": "^5.2.0",
Expand Down
4 changes: 3 additions & 1 deletion packages/reporters/dev-server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@
},
"dependencies": {
"@parcel/plugin": "2.7.0",
"@parcel/utils": "2.7.0"
"@parcel/utils": "2.7.0",
"@parcel/diagnostic": "2.7.0",
"@parcel/fs": "2.7.0"
},
"devDependencies": {
"@parcel/babel-preset": "2.7.0",
Expand Down
2 changes: 2 additions & 0 deletions packages/reporters/lsp-reporter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@
"parcel": "^2.7.0"
},
"dependencies": {
"@parcel/diagnostic": "2.7.0",
"@parcel/plugin": "2.7.0",
"@parcel/types": "2.7.0",
"@parcel/utils": "2.7.0",
"node-ipc": "^9.1.4",
"nullthrows": "^1.1.1",
Expand Down
3 changes: 2 additions & 1 deletion packages/runtimes/hmr/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
},
"dependencies": {
"@parcel/plugin": "2.7.0",
"@parcel/utils": "2.7.0"
"@parcel/utils": "2.7.0",
"@parcel/reporter-dev-server": "2.7.0"
}
}
1 change: 1 addition & 0 deletions packages/runtimes/js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"dependencies": {
"@parcel/plugin": "2.7.0",
"@parcel/utils": "2.7.0",
"@parcel/types": "2.7.0",
"nullthrows": "^1.1.1"
}
}
2 changes: 1 addition & 1 deletion packages/runtimes/webextension/src/autoreload-bg.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* global chrome, browser, addEventListener, fetch, Response, HMR_HOST, HMR_PORT */
/* global chrome, browser, addEventListener, Response, HMR_HOST, HMR_PORT */
var env = typeof chrome == 'undefined' ? browser : chrome;
env.runtime.onMessage.addListener(function (msg) {
if (msg.__parcel_hmr_reload__) {
Expand Down
1 change: 1 addition & 0 deletions packages/transformers/elm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"dependencies": {
"@parcel/diagnostic": "2.7.0",
"@parcel/plugin": "2.7.0",
"@parcel/types": "2.7.0",
"command-exists": "^1.2.8",
"cross-spawn": "^7.0.3",
"elm-hot": "^1.1.5",
Expand Down
1 change: 1 addition & 0 deletions packages/transformers/html/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"@parcel/diagnostic": "2.7.0",
"@parcel/hash": "2.7.0",
"@parcel/plugin": "2.7.0",
"@parcel/types": "2.7.0",
"nullthrows": "^1.1.1",
"posthtml": "^0.16.5",
"posthtml-parser": "^0.10.1",
Expand Down
Loading

0 comments on commit 119a128

Please sign in to comment.