Skip to content

Commit

Permalink
chore: BIM-45647 bump rxjs utils jest versions
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergey Romanenko authored and wndffs committed Oct 24, 2024
1 parent 172e5ce commit 1f72821
Show file tree
Hide file tree
Showing 23 changed files with 5,217 additions and 4,587 deletions.
20 changes: 2 additions & 18 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"root": true,
"ignorePatterns": ["index.ts", "api.ts"],
"plugins": ["prettier", "jsdoc", "deprecation", "editorconfig", "ban", "@typescript-eslint", "import"],
"ignorePatterns": ["index.ts", "api.ts", ".eslintrc", "jest.config*"],
"plugins": ["prettier", "editorconfig", "ban", "@typescript-eslint"],
"extends": ["prettier"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
Expand All @@ -17,15 +17,6 @@
"default": "array"
}
],
"@typescript-eslint/ban-types": [
"error",
{
"types": {
"Object": null
},
"extendDefaults": false
}
],
"@typescript-eslint/consistent-type-definitions": "error",
"@typescript-eslint/consistent-type-assertions": [
"error",
Expand Down Expand Up @@ -96,7 +87,6 @@
"variableDeclarationIgnoreFunction": true
}
],
"@typescript-eslint/type-annotation-spacing": "error",
"@typescript-eslint/explicit-function-return-type": [
"error",
{
Expand All @@ -107,8 +97,6 @@
"@typescript-eslint/dot-notation": "off",
"@typescript-eslint/no-dynamic-delete": "error",
"@typescript-eslint/unified-signatures": "error",
"@typescript-eslint/semi": ["error", "always"],
"@typescript-eslint/no-extra-semi": "error",
"@typescript-eslint/naming-convention": [
"error",
{
Expand Down Expand Up @@ -175,7 +163,6 @@
}
}
],
"jsdoc/no-types": "error",
"complexity": [
"error",
{
Expand All @@ -188,7 +175,6 @@
"default-case": "error",
"default-case-last": "error",
"eqeqeq": ["error", "always"],
"import/no-default-export": "error",
"max-len": [
"error",
{
Expand Down Expand Up @@ -225,7 +211,6 @@
}
],
"no-throw-literal": "off",
"@typescript-eslint/no-throw-literal": ["error"],
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": [
"error",
Expand Down Expand Up @@ -267,7 +252,6 @@
}
],
"prefer-arrow/prefer-arrow-functions": "off",
"deprecation/deprecation": "warn",
"editorconfig/charset": "error",
"ban/ban": [
"warn",
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/release-package-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ jobs:
name: Install Dependencies
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 18
cache: 'npm'
Expand Down Expand Up @@ -66,7 +66,7 @@ jobs:
path: ./dist

- name: Use Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
always-auth: true
node-version: 18
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/release-package-next.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ jobs:
name: Install Dependencies
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 18
cache: 'npm'
Expand Down Expand Up @@ -69,7 +69,7 @@ jobs:
path: ./dist

- name: Use Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
always-auth: true
node-version: 18
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/release-package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ jobs:
name: Install Dependencies
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 18
cache: 'npm'
Expand Down Expand Up @@ -66,7 +66,7 @@ jobs:
path: ./dist

- name: Use Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
always-auth: true
node-version: 18
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/run-checks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ jobs:
name: Install Dependencies
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 18
cache: 'npm'
Expand Down
41 changes: 32 additions & 9 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -1,14 +1,37 @@
{
"arrowParens": "avoid",
"tabWidth": 2,
"useTabs": false,
"semi": true,
"singleQuote": true,
"quoteProps": "as-needed",
"jsxSingleQuote": true,
"trailingComma": "es5",
"bracketSpacing": true,
"cursorOffset": 0,
"bracketSameLine": false,
"arrowParens": "always",
"requirePragma": false,
"insertPragma": false,
"proseWrap": "always",
"experimentalTernaries": false,
"htmlWhitespaceSensitivity": "css",
"vueIndentScriptAndStyle": false,
"endOfLine": "lf",
"filepath": "none",
"cursorOffset": 0,
"printWidth": 120,
"proseWrap": "always",
"semi": true,
"singleQuote": true,
"tabWidth": 2,
"trailingComma": "none",
"useTabs": false
"overrides": [
{
"files": "*.html",
"options": {
"parser": "angular",
"htmlWhitespaceSensitivity": "ignore",
"proseWrap": "never"
}
},
{
"files": ["tsconfig.*", ".eslintrc"],
"options": {
"trailingComma": "none"
}
}
]
}
3 changes: 2 additions & 1 deletion cspell.local-terms.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
autofix
bimeister
BIMeister
bimeister
26 changes: 13 additions & 13 deletions do-build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
PackageJson,
PackageJsonExports,
PackageJsonExportsItem,
SourceFileData
SourceFileData,
} from '@bimeister/utilities/build';
import { getAllNestedFilePaths } from '@bimeister/utilities/filesystem';
import { build, BuildOptions } from 'esbuild';
Expand All @@ -32,7 +32,7 @@ const esBuildConfig: BuildOptions = {
mainFields: ['module', 'main', 'browser'],
color: true,
metafile: true,
legalComments: 'none'
legalComments: 'none',
};
const notBundledPackages: Set<string> = new Set<string>(['internal', 'testing']);

Expand All @@ -42,7 +42,7 @@ const typeOnlyFileEndings: Set<string> = new Set<string>(

const outDirByPackageName: Map<string, string> = new Map<string, string>([
['event-bus-native', 'native'],
['event-bus-rxjs', 'rxjs']
['event-bus-rxjs', 'rxjs'],
]);

getAllNestedFilePaths(packagesFolderPath).then((sourceFilePaths: string[]) => {
Expand Down Expand Up @@ -80,21 +80,21 @@ async function generateBundle(sourceFilesDataByPackageName: Map<string, SourceFi
const buildConfig: BuildOptions = {
...esBuildConfig,
outdir,
entryPoints
entryPoints,
};

const commonJsConfig: BuildOptions = {
...buildConfig,
splitting: false,
format: 'cjs',
outExtension: { '.js': '.cjs' }
outExtension: { '.js': '.cjs' },
};

const esModuleConfig: BuildOptions = {
...buildConfig,
splitting: true,
format: 'esm',
outExtension: { '.js': '.mjs' }
outExtension: { '.js': '.mjs' },
};

await build(commonJsConfig);
Expand All @@ -118,7 +118,7 @@ async function generateTypings(sourceFilesDataByPackageName: Map<string, SourceF
await buildBundleTypings({
configPath: tsConfigFilePath,
inputPath: mainFilePath,
outputPath: bundleTypingsFilePath
outputPath: bundleTypingsFilePath,
});

if (packageName === 'rxjs-operators') {
Expand Down Expand Up @@ -205,7 +205,7 @@ async function generatePackageJson(
es2020: `${filePathWithoutExtension}.mjs`,
main: `${filePathWithoutExtension}.cjs`,
typings: `${filePathWithoutExtension}.d.ts`,
default: `${filePathWithoutExtension}.cjs`
default: `${filePathWithoutExtension}.cjs`,
};

if (packageName === 'event-bus-native') {
Expand All @@ -223,9 +223,9 @@ async function generatePackageJson(
[
'./package.json',
{
default: './package.json'
}
]
default: './package.json',
},
],
];
const exports: PackageJsonExports = Object.fromEntries(topLevelExports.concat(exportsEntries));

Expand All @@ -243,7 +243,7 @@ async function generatePackageJson(
typings: rootTypesFilePath,
module: rootEsmFilePath,
es2020: rootEsmFilePath,
main: rootCommonJsFilePath
}
main: rootCommonJsFilePath,
},
});
}
Loading

0 comments on commit 1f72821

Please sign in to comment.