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 06/2021 #150

Closed
wants to merge 6 commits into from
Closed
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
32 changes: 32 additions & 0 deletions .config/beemo.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
export default {
module: '@milesj/build-tools',
drivers: [
'babel',
'eslint',
[
'jest',
{
env: {
NODE_ENV: 'test',
BOOSTJS_ENV: 'test',
},
},
],
'prettier',
[
'typescript',
{
buildFolder: 'dts',
declarationOnly: true,
},
],
],
settings: {
decorators: true,
node: true,
react: true,
},
// prettier: {
// ignore: ['CHANGELOG.md'],
// },
};
4 changes: 1 addition & 3 deletions configs/eslint.js → .config/beemo/eslint.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
/* eslint-disable sort-keys */

module.exports = {
export default {
rules: {
'no-void': 'off',
'node/no-unsupported-features/node-builtins': 'warn',
Expand Down
2 changes: 1 addition & 1 deletion configs/jest.js → .config/beemo/jest.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module.exports = {
export default {
coveragePathIgnorePatterns: [
'test.ts',
// Annoying to test
Expand Down
5 changes: 5 additions & 0 deletions .config/beemo/typescript.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
export default {
compilerOptions: {
keyofStringsOnly: true,
},
};
9 changes: 5 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,19 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
node-version: [10, 12, 14, 15]
node-version: [10, 12, 14, 16]
fail-fast: true
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- run: yarn install --ignore-engines --frozen-lockfile
- run: yarn global add packemon@0.14.3 --force
- run: yarn global add packemon@0.16.6 --force
- run: yarn run build
- run: yarn run type
- run: yarn run coverage
- run: yarn run test
- run: yarn run test:cts
- run: yarn run lint
pack:
name: Pack
Expand All @@ -31,7 +32,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- run: yarn install --ignore-engines --frozen-lockfile
- run: yarn global add packemon@0.14.3 --force
- run: yarn global add packemon@0.16.6 --force
- run: yarn run pack
docs:
name: Docs
Expand Down
55 changes: 9 additions & 46 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,14 @@
"build": "packemon build --addEngines",
"pack": "NODE_ENV=production packemon pack --addEngines --declaration=standard",
"clean": "packemon clean",
"coverage": "yarn run jest --coverage",
"check": "yarn run type && yarn run test && yarn run lint",
"coverage": "yarn run test --coverage",
"docs": "cd website && yarn run start",
"lint": "beemo eslint",
"jest": "beemo jest",
"format": "beemo prettier",
"pretest": "yarn run type",
"test": "yarn run jest && yarn run test:tsm",
"test": "beemo jest",
"test:cli": "node ./packages/cli/examples/bin.js",
"test:tsm": "node packages/common/tests/helpers/requireTypedModule.assert.js",
"posttest": "yarn run lint",
"test:cts": "node packages/common/tests/helpers/requireTypedModule.assert.js",
"type": "beemo typescript --reference-workspaces --build --decorators",
"prerelease": "node scripts/checkReleaseRequirements.js && yarn run pack && yarn test",
"release": "lerna version --conventional-commits --changelog-preset conventional-changelog-beemo --create-release github --push && lerna publish from-git"
Expand All @@ -23,15 +21,15 @@
"node": ">=10.3.0"
},
"devDependencies": {
"@milesj/build-tools": "^2.17.1",
"@milesj/build-tools": "^3.0.0-alpha.1",
"@types/babel__core": "^7.1.14",
"@types/exit": "^0.1.31",
"@types/fs-extra": "^9.0.9",
"@types/lodash": "^4.14.168",
"@types/fs-extra": "^9.0.11",
"@types/lodash": "^4.14.170",
"@types/minimatch": "^3.0.4",
"@types/pluralize": "^0.0.29",
"@types/react": "^16.9.55",
"@types/semver": "^7.3.4",
"@types/semver": "^7.3.6",
"@types/split": "^1.0.0",
"@types/wrap-ansi": "^3.0.0",
"conventional-changelog-beemo": "^2.1.0",
Expand All @@ -44,40 +42,5 @@
"workspaces": [
"packages/*",
"themes/*"
],
"beemo": {
"module": "@milesj/build-tools",
"drivers": [
"babel",
"eslint",
{
"driver": "jest",
"env": {
"NODE_ENV": "test",
"BOOSTJS_ENV": "test"
}
},
"prettier",
{
"driver": "typescript",
"buildFolder": "dts",
"declarationOnly": true
}
],
"settings": {
"decorators": true,
"node": true,
"react": true
},
"prettier": {
"ignore": [
"CHANGELOG.md"
]
},
"typescript": {
"compilerOptions": {
"keyofStringsOnly": true
}
}
}
]
}
2 changes: 1 addition & 1 deletion packages/debug/src/types.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import debug from 'debug';

export interface Debugger extends debug.IDebugger {
(message: string, ...args: unknown[]): void;
disable: () => void;
enable: () => void;
invariant: (condition: boolean, message: string, pass: string, fail: string) => void;
verbose: (message: string, ...args: unknown[]) => void;
(message: string, ...args: unknown[]): void;
}
4 changes: 2 additions & 2 deletions packages/debug/tests/__snapshots__/CrashReporter.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,9 @@ BEEMO
=====

@beemo/core:
1.1.8
2.0.0-rc.3
@beemo/cli:
1.0.11
2.0.0-rc.3
"
`;

Expand Down
2 changes: 1 addition & 1 deletion packages/translate/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"dependencies": {
"@boost/common": "^2.7.2",
"@boost/internal": "^2.2.2",
"i18next": "^20.1.0",
"i18next": "^20.3.1",
"os-locale": "^5.0.0"
},
"funding": {
Expand Down
3 changes: 1 addition & 2 deletions packages/translate/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,10 @@ export interface MessageOptions {
}

export interface Translator {
(key: string[] | string, params?: InterpolationParams, options?: MessageOptions): string;
direction: Direction;
locale: Locale;
changeLocale: (locale: Locale) => Promise<void>;
(key: string[] | string, params?: InterpolationParams, options?: MessageOptions): string;
// Testing only
// eslint-disable-next-line @typescript-eslint/member-ordering
i18n: i18n;
}
Loading