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 7, 2022
1 parent cf3a752 commit 2657c5a
Show file tree
Hide file tree
Showing 53 changed files with 376 additions and 207 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
11 changes: 6 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,27 +37,28 @@
},
"devDependencies": {
"@babel/core": "^7.12.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",
"@types/node": "^15.12.4",
"@types/node": "^12.20.55",
"cross-env": "^7.0.0",
"eslint": "^7.20.0",
"eslint": "^7.32.0",
"flow-bin": "0.184.0",
"glob": "^7.1.6",
"gulp": "^4.0.2",
"gulp-babel": "^8.0.0",
"husky": "^6.0.0",
"lerna": "^3.22.1",
"@octokit/core": "3.6.0",
"lint-staged": "^10.2.11",
"mocha": "^8.3.0",
"mocha-junit-reporter": "^2.0.0",
"mocha-multi-reporters": "^1.5.1",
"prettier": "2.4.1",
"punycode": "^1.4.1",
"rimraf": "^3.0.2",
"semver": "^5.7.1",
"sinon": "^7.3.1"
"semver": "^5.7.1"
},
"engines": {
"node": ">= 12.0.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 @@ -23,6 +23,7 @@
"@parcel/diagnostic": "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
1 change: 1 addition & 0 deletions packages/bundlers/experimental/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 @@ -33,6 +33,8 @@
"@parcel/core": "^2.7.0"
},
"devDependencies": {
"@parcel/core": "^2.7.0",
"@parcel/types": "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.0.0",
"@parcel/types": "2.7.0",
"@parcel/utils": "2.7.0",
"@parcel/watcher": "2.0.6",
"@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
3 changes: 2 additions & 1 deletion packages/core/fs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,11 @@
"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",
"@parcel/watcher": "^2.0.0",
"@parcel/watcher": "^2.0.6",
"@parcel/workers": "2.7.0"
},
"devDependencies": {
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
10 changes: 10 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 All @@ -52,6 +61,7 @@
"react": "^17.0.2",
"react-dom": "^17.0.2",
"sugarss": "^3.0.3",
"stylus": "*",
"tailwindcss": "^3.0.2",
"tempy": "^0.3.0",
"ws": "^7.0.0"
Expand Down
3 changes: 3 additions & 0 deletions packages/core/logger/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,8 @@
"dependencies": {
"@parcel/diagnostic": "2.7.0",
"@parcel/events": "2.7.0"
},
"devDependencies": {
"@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
3 changes: 2 additions & 1 deletion packages/core/parcel/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
},
"devDependencies": {
"@babel/core": "^7.0.0",
"@parcel/babel-register": "2.7.0"
"@parcel/babel-register": "2.7.0",
"@parcel/types": "2.7.0"
}
}
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"
}
}
10 changes: 9 additions & 1 deletion packages/core/test-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,21 @@
"@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",
"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"
},
"peerDependencies": {
"@parcel/workers": "2.7.0"
},
"devDependencies": {
"@parcel/types": "2.7.0",
"@parcel/workers": "2.7.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"
}
}
3 changes: 3 additions & 0 deletions packages/namers/default/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,8 @@
"@parcel/diagnostic": "2.7.0",
"@parcel/plugin": "2.7.0",
"nullthrows": "^1.1.1"
},
"devDependencies": {
"@parcel/types": "2.7.0"
}
}
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 @@ -26,6 +26,7 @@
"nullthrows": "^1.1.1"
},
"devDependencies": {
"@parcel/types": "2.7.0",
"postcss": "^8.4.5"
}
}
4 changes: 4 additions & 0 deletions packages/packagers/js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,9 @@
"@parcel/utils": "2.7.0",
"globals": "^13.2.0",
"nullthrows": "^1.1.1"
},
"devDependencies": {
"@parcel/plugin": "2.7.0",
"@parcel/types": "2.7.0"
}
}
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 @@ -38,6 +38,10 @@
"term-size": "^2.2.1"
},
"devDependencies": {
"@parcel/diagnostic": "2.7.0",
"@parcel/fs": "2.7.0",
"@parcel/package-manager": "2.7.0",
"@parcel/test-utils": "2.7.0",
"filesize": "^6.1.0",
"nullthrows": "^1.1.1",
"ora": "^5.2.0",
Expand Down
2 changes: 2 additions & 0 deletions packages/reporters/dev-server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@
},
"devDependencies": {
"@parcel/babel-preset": "2.7.0",
"@parcel/diagnostic": "2.7.0",
"@parcel/fs": "2.7.0",
"@parcel/types": "2.7.0",
"connect": "^3.7.0",
"ejs": "^3.1.6",
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
Loading

0 comments on commit 2657c5a

Please sign in to comment.