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

deps: Audit 02/07 #230

Merged
merged 11 commits into from
Feb 8, 2024
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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest] # , windows-latest]
node-version: [16, 18, 20]
node-version: [18, 20]
fail-fast: false # true
steps:
- uses: actions/checkout@v3
Expand Down
32 changes: 17 additions & 15 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,13 @@
"scripts": {
"docs": "yarn run moon run website:start",
"moon": "$(yarn bin moon)",
"clean": "rm -rf packages/*/{cjs,lib}",
"packemon": "node ./packages/packemon/cjs/bin.cjs",
"prerelease": "yarn run setup && yarn run moon run :build -u",
"release": "yarn prerelease && lerna-release",
"setup": "node ./scripts/buildPackages.mjs",
"version": "yarn install && git add yarn.lock"
"version": "yarn install && git add yarn.lock",
"postinstall": "node ./scripts/deleteSwcTypes.mjs"
},
"workspaces": [
"packages/*",
Expand All @@ -19,25 +21,25 @@
"node": ">=16.12.0"
},
"devDependencies": {
"@babel/cli": "^7.23.4",
"@babel/core": "^7.23.6",
"@moonrepo/cli": "^1.18.0",
"@babel/cli": "^7.23.9",
"@babel/core": "^7.23.9",
"@moonrepo/cli": "^1.21.1",
"@moonrepo/dev": "^2.0.1",
"@types/fs-extra": "^11.0.4",
"@types/jest": "^29.5.11",
"@types/jest": "^29.5.12",
"@types/micromatch": "^4.0.6",
"@types/node": "^16.18.68",
"@types/react": "^18.2.43",
"@types/node": "^16.18.79",
"@types/react": "^18.2.55",
"@types/semver": "^7.5.6",
"babel-preset-moon": "^2.0.12",
"chokidar": "^3.5.3",
"electron-to-chromium": "^1.4.610",
"eslint": "^8.55.0",
"eslint-config-moon": "^2.0.13",
"babel-preset-moon": "^2.0.14",
"chokidar": "^3.6.0",
"electron-to-chromium": "^1.4.661",
"eslint": "^8.56.0",
"eslint-config-moon": "^2.0.16",
"jest": "^29.7.0",
"jest-preset-moon": "^2.0.6",
"lerna": "^8.0.0",
"prettier": "^3.1.1",
"jest-preset-moon": "^2.0.7",
"lerna": "^8.1.2",
"prettier": "^3.2.5",
"prettier-config-moon": "^1.1.2",
"ts-node": "^10.9.2",
"tsconfig-moon": "^1.3.0",
Expand Down
28 changes: 14 additions & 14 deletions packages/packemon/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,11 @@
"platform": "node"
},
"dependencies": {
"@babel/core": "^7.23.6",
"@babel/core": "^7.23.9",
"@babel/plugin-external-helpers": "^7.23.3",
"@babel/plugin-proposal-decorators": "^7.23.6",
"@babel/plugin-transform-runtime": "^7.23.6",
"@babel/preset-env": "^7.23.6",
"@babel/plugin-proposal-decorators": "^7.23.9",
"@babel/plugin-transform-runtime": "^7.23.9",
"@babel/preset-env": "^7.23.9",
"@babel/preset-flow": "^7.23.3",
"@babel/preset-react": "^7.23.3",
"@babel/preset-typescript": "^7.23.3",
Expand All @@ -79,15 +79,15 @@
"@boost/terminal": "^4.0.1",
"@rollup/plugin-babel": "^6.0.4",
"@rollup/plugin-commonjs": "^25.0.7",
"@rollup/plugin-json": "^6.0.1",
"@rollup/plugin-json": "^6.1.0",
"@rollup/plugin-node-resolve": "^15.2.3",
"@swc/core": "^1.3.64",
"@swc/helpers": "^0.5.1",
"@swc/core": "^1.4.0",
"@swc/helpers": "^0.5.6",
"babel-plugin-cjs-esm-interop": "^3.0.3",
"babel-plugin-conditional-invariant": "^3.0.1",
"babel-plugin-env-constants": "^3.0.1",
"babel-preset-solid": "^1.8.6",
"browserslist": "^4.22.2",
"babel-preset-solid": "^1.8.12",
"browserslist": "^4.22.3",
"debug": "^4.3.4",
"execa": "^5.1.1",
"fast-glob": "^3.3.2",
Expand All @@ -96,19 +96,19 @@
"ink": "^3.2.0",
"ink-progress-bar": "^3.0.0",
"ink-spinner": "^4.0.3",
"magic-string": "^0.30.5",
"magic-string": "^0.30.7",
"micromatch": "^4.0.5",
"react": "^18.2.0",
"resolve": "^1.22.8",
"rollup": "^4.8.0",
"rollup": "^4.9.6",
"rollup-plugin-node-externals": "^5.1.3",
"rollup-plugin-polyfill-node": "^0.13.0",
"semver": "^7.5.4",
"semver": "^7.6.0",
"spdx-license-list": "^6.8.0"
},
"devDependencies": {
"@swc/cli": "^0.1.62",
"@typescript-eslint/types": "^6.14.0"
"@swc/cli": "^0.3.9",
"@typescript-eslint/types": "^6.21.0"
},
"peerDependencies": {
"chokidar": "^3.5.1",
Expand Down
4 changes: 2 additions & 2 deletions packages/packemon/src/rollup/plugins/swc.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { OutputPlugin, Plugin } from 'rollup';
import { Options, transform } from '@swc/core';
import type { OutputPlugin, Plugin } from 'rollup';
import { type Options, transform } from '@swc/core';

export function swcInput(config: Partial<Options>): Plugin {
return {
Expand Down
4 changes: 2 additions & 2 deletions packages/packemon/src/swc/config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {
import type {
Config,
EnvConfig,
ModuleConfig,
Expand Down Expand Up @@ -200,7 +200,7 @@ export function getSwcOutputConfig(
},
},
},
target: SUPPORT_TO_ESM_SPEC[support],
// target: SUPPORT_TO_ESM_SPEC[support],
},
};

Expand Down
2 changes: 1 addition & 1 deletion packages/packemon/src/types.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { OutputOptions as RollupOutputOptions, RollupOptions } from 'rollup';
import { TransformOptions as BabelOptions } from '@babel/core';
import { PackageStructure } from '@boost/common';
import { Options as SwcOptions } from '@swc/core';
import type { Options as SwcOptions } from '@swc/core';

// Platform = The runtime or operating system the code will run in.
// Support = The supported version of the platform.
Expand Down
8 changes: 4 additions & 4 deletions packages/packemon/tests/__snapshots__/outputs.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ exports.Example = Example;
exports[`Feature flags compiles 3`] = `
[
"lib/helpers.js",
"'use strict';
""use strict";
function _array_like_to_array(arr, len) {
if (len == null || len > arr.length) len = arr.length;
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
Expand Down Expand Up @@ -147,7 +147,7 @@ var Example = /*#__PURE__*/ function() {
{
key: "foo",
get: function get() {
return '';
return "";
},
set: function set(value) {}
}
Expand All @@ -163,7 +163,7 @@ exports.Example = Example;
exports[`Feature flags compiles 4`] = `
[
"lib/helpers.js",
"'use strict';
""use strict";
function _array_like_to_array(arr, len) {
if (len == null || len > arr.length) len = arr.length;
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
Expand Down Expand Up @@ -237,7 +237,7 @@ var Example = /*#__PURE__*/ function() {
{
key: "foo",
get: function get() {
return '';
return "";
},
set: function set(value) {}
}
Expand Down
Loading
Loading