Skip to content

Commit

Permalink
deps: Update all to latest.
Browse files Browse the repository at this point in the history
  • Loading branch information
milesj committed Feb 7, 2021
1 parent 7b5416e commit 3dc9ff7
Show file tree
Hide file tree
Showing 8 changed files with 803 additions and 853 deletions.
34 changes: 17 additions & 17 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,48 +62,48 @@
},
"devDependencies": {
"@boost/test-utils": "^2.2.0",
"@milesj/build-tools": "^2.16.1",
"@milesj/build-tools": "^2.17.0",
"@types/fs-extra": "^9.0.6",
"@types/node": "^14.14.20",
"@types/node": "^14.14.25",
"@types/react": "^16.9.56",
"@types/rimraf": "^3.0.0",
"@types/semver": "^7.3.4"
},
"dependencies": {
"@babel/core": "^7.12.10",
"@babel/plugin-proposal-decorators": "^7.12.12",
"@babel/plugin-transform-runtime": "^7.12.10",
"@babel/preset-env": "^7.12.11",
"@babel/preset-flow": "^7.12.1",
"@babel/preset-react": "^7.12.10",
"@babel/preset-typescript": "^7.12.7",
"@babel/core": "^7.12.13",
"@babel/plugin-proposal-decorators": "^7.12.13",
"@babel/plugin-transform-runtime": "^7.12.15",
"@babel/preset-env": "^7.12.13",
"@babel/preset-flow": "^7.12.13",
"@babel/preset-react": "^7.12.13",
"@babel/preset-typescript": "^7.12.13",
"@boost/cli": "^2.9.0",
"@boost/common": "^2.5.0",
"@boost/debug": "^2.2.0",
"@boost/event": "^2.3.0",
"@boost/pipeline": "^2.2.0",
"@boost/terminal": "^2.2.0",
"@microsoft/api-extractor": "^7.13.0",
"@rollup/plugin-babel": "^5.2.2",
"@rollup/plugin-commonjs": "^17.0.0",
"@rollup/plugin-node-resolve": "^11.1.0",
"@microsoft/api-extractor": "^7.13.1",
"@rollup/plugin-babel": "^5.2.3",
"@rollup/plugin-commonjs": "^17.1.0",
"@rollup/plugin-node-resolve": "^11.1.1",
"babel-plugin-transform-async-to-promises": "^0.8.15",
"builtin-modules": "^3.2.0",
"chokidar": "^3.5.1",
"execa": "^5.0.0",
"fast-glob": "^3.2.4",
"fast-glob": "^3.2.5",
"filesize": "^6.1.0",
"fs-extra": "^9.0.1",
"fs-extra": "^9.1.0",
"ink": "^3.0.8",
"ink-progress-bar": "^3.0.0",
"ink-spinner": "^4.0.1",
"react": "^16.14.0",
"rimraf": "^3.0.2",
"rollup": "^2.36.2",
"rollup": "^2.38.5",
"rollup-plugin-node-externals": "^2.2.0",
"rollup-plugin-visualizer": "^4.2.0",
"semver": "^7.3.4",
"spdx-license-list": "^6.3.0",
"spdx-license-list": "^6.4.0",
"string-hash": "^1.1.3",
"typescript": "^4.1.3"
}
Expand Down
2 changes: 1 addition & 1 deletion src/Artifact.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export default abstract class Artifact<T extends object = {}> {

protected logWithSource(
message: string,
level: 'info' | 'warn' | 'error',
level: 'error' | 'info' | 'warn',
{
id,
output,
Expand Down
8 changes: 4 additions & 4 deletions src/babel/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ export interface PresetEnvOptions {
ignoreBrowserslistConfig?: boolean;
include?: string[];
loose?: boolean;
modules?: 'amd' | 'umd' | 'systemjs' | 'commonjs' | 'cjs' | 'auto' | false;
modules?: 'amd' | 'auto' | 'cjs' | 'commonjs' | 'systemjs' | 'umd' | false;
shippedProposals?: boolean;
spec?: boolean;
targets?: string | string[] | { [key: string]: string | string[] };
useBuiltIns?: 'usage' | 'entry' | false;
targets?: string[] | string | { [key: string]: string[] | string };
useBuiltIns?: 'entry' | 'usage' | false;
}

function getPlatformEnvOptions(
Expand Down Expand Up @@ -96,7 +96,7 @@ function getSharedConfig(
export function getBabelInputConfig(
artifact: BundleArtifact,
features: FeatureFlags,
): Omit<ConfigStructure, 'include' | 'exclude'> {
): Omit<ConfigStructure, 'exclude' | 'include'> {
const plugins: PluginItem[] = [];
const presets: PluginItem[] = [];

Expand Down
2 changes: 1 addition & 1 deletion src/commands/Base.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export interface CommonOptions {
export abstract class BaseCommand<
O extends object = {},
P extends PrimitiveType[] = string[]
> extends Command<O & GlobalOptions & CommonOptions, P> {
> extends Command<CommonOptions & GlobalOptions & O, P> {
@Arg.String('Current working directory to run in', { category: 'global' })
cwd: string = '';

Expand Down
5 changes: 2 additions & 3 deletions src/components/Environment.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,10 @@ import { BROWSER_TARGETS, NATIVE_TARGETS, NODE_SUPPORTED_VERSIONS } from '../con
import { Environment as EnvType, Platform, Support } from '../types';

export type EnvironmentProps =
| { target: EnvType }
| {
{
platform: Platform;
support: Support;
};
} | { target: EnvType };

function trimVersion(version: string) {
const parts = version.split('.');
Expand Down
4 changes: 2 additions & 2 deletions src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,15 @@ export const NODE_SUPPORTED_VERSIONS: { [K in Support]: string } = {
experimental: '15.0.0',
};

export const NPM_SUPPORTED_VERSIONS: { [K in Support]: string | string[] } = {
export const NPM_SUPPORTED_VERSIONS: { [K in Support]: string[] | string } = {
legacy: ['5.6.0', '6.0.0'],
stable: '6.1.0',
current: '6.9.0',
experimental: '7.0.0',
};

// Based on browserslist: https://github.com/browserslist/browserslist
export const BROWSER_TARGETS: { [K in Support]: string | string[] } = {
export const BROWSER_TARGETS: { [K in Support]: string[] | string } = {
legacy: 'IE 10',
stable: 'IE 11',
current: 'defaults',
Expand Down
20 changes: 10 additions & 10 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@ declare global {
export type Platform = 'browser' | 'native' | 'node'; // electron

export type Support =
// Unsupported version
| 'legacy'
// Oldest version still supported
| 'stable'
// Latest version
| 'current'
// Next/future version
| 'experimental';
| 'experimental'
// Unsupported version
| 'legacy'
// Oldest version still supported
| 'stable';

export type Environment = `${Platform}:${Support}`;

Expand All @@ -50,11 +50,11 @@ export type NodeFormat =
// ECMAScript modules with ".mjs" file extension
| 'mjs';

export type Format = NodeFormat | BrowserFormat;
export type Format = BrowserFormat | NodeFormat;

export type AnalyzeType = 'none' | 'sunburst' | 'treemap' | 'network';
export type AnalyzeType = 'network' | 'none' | 'sunburst' | 'treemap';

export type DeclarationType = 'none' | 'standard' | 'api';
export type DeclarationType = 'api' | 'none' | 'standard';

// PACKAGES

Expand All @@ -80,7 +80,7 @@ export interface PackageConfig {

// BUILD

export type ArtifactState = 'pending' | 'building' | 'passed' | 'failed';
export type ArtifactState = 'building' | 'failed' | 'passed' | 'pending';

export interface BuildOptions {
addEngines?: boolean;
Expand Down Expand Up @@ -143,7 +143,7 @@ declare module 'rollup' {

// OTHER

export type Awaitable = void | Promise<void>;
export type Awaitable = Promise<void> | void;

export type TSConfigStructure = ts.ParsedCommandLine;

Expand Down
Loading

0 comments on commit 3dc9ff7

Please sign in to comment.