Skip to content

Commit

Permalink
#63 Updating to version 2.0.0. Removing state pac…
Browse files Browse the repository at this point in the history
…kage, as it is now part of the core.
  • Loading branch information
stazz committed Aug 9, 2023
1 parent 747db73 commit 5f8d9bc
Show file tree
Hide file tree
Showing 23 changed files with 3,811 additions and 4,039 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,11 @@ jobs:
build_and_test:
strategy:
matrix:
dir: [ resource-pool, typed-sql, config, main, state ]
dir:
- resource-pool
- typed-sql
- config
- main
runs-on: ubuntu-latest
name: Build and test ${{ matrix.dir }}
steps:
Expand Down Expand Up @@ -80,18 +84,13 @@ jobs:
# We still want to run build to catch any TS error possibly lurking somewhere.
# Because we test first and build then, we can do compilation without __tests__ directory.
# We re-add it to src folder in order to include it in published NPM package (if CD pipeline).
# Notice we must produce stub package.json file to dist-cjs folder, otherwise `require` will fail on relative imports within the dist-cjs folder.
- id: compile
name: Compile ${{ matrix.dir }}
shell: bash
run: |
set -e
./scripts/build.sh '${{ matrix.dir }}' ci
if [[ -d '${{ matrix.dir }}/dist-cjs' ]]; then
sudo chmod -R o=rwX '${{ matrix.dir }}/dist-cjs'
cat '${{ matrix.dir }}/package.json' | jq -M 'del(.files, .type, .main, .module, .types, .exports)' > '${{ matrix.dir }}/dist-cjs/package.json'
fi
- id: coverage
name: Upload coverage for '${{ matrix.dir }}'
Expand Down
12 changes: 10 additions & 2 deletions config/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ty-ras-extras/config-io-ts",
"version": "1.0.2",
"version": "2.0.0",
"author": {
"name": "Stanislav Muhametsin",
"email": "[email protected]",
Expand Down Expand Up @@ -52,6 +52,7 @@
"eslint-plugin-sonarjs": "0.19.0",
"fp-ts": "2.12.3",
"io-ts": "2.2.19",
"madge": "6.1.0",
"prettier": "2.8.8",
"ts-node": "10.9.1",
"typescript": "5.0.4"
Expand All @@ -66,11 +67,18 @@
"format-output-files-js": "eslint --no-eslintrc --config '.eslintrc.out.cjs' --fix 'dist-cjs/**/*js' 'dist-esm/**/*js'",
"generate-stub-package-json-for-cjs": "../scripts/generate-stub-package-json.cjs",
"generate-package-json-for-subpaths": "./generate-package-json-for-ts.cjs",
"lint": "eslint ./src --ext .ts,.tsx",
"lint": "yarn run lint:eslint && yarn run lint:circular",
"lint:circular": "madge --circular --no-color --no-spinner --extensions ts --warning ./src",
"lint:eslint": "eslint ./src --ext .ts,.tsx",
"remove-empty-js-files": "../scripts/remove-empty-js-files.cjs",
"tsc": "tsc --project tsconfig.build.json",
"tsc:plain": "tsc",
"test:coverage": "c8 --temp-directory /tmp ava",
"test:run": "c8 --temp-directory /tmp --reporter text ava"
},
"resolutions": {
"detective-typescript": "11.1.0",
"dependency-tree": "10.0.9",
"precinct": "11.0.5"
}
}
1,178 changes: 941 additions & 237 deletions config/yarn.lock

Large diffs are not rendered by default.

12 changes: 10 additions & 2 deletions main/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ty-ras-extras/main-io-ts",
"version": "1.0.0",
"version": "2.0.0",
"author": {
"name": "Stanislav Muhametsin",
"email": "[email protected]",
Expand Down Expand Up @@ -51,6 +51,7 @@
"eslint-plugin-prettier": "4.2.1",
"eslint-plugin-sonarjs": "0.19.0",
"fp-ts": "2.12.3",
"madge": "6.1.0",
"prettier": "2.8.8",
"ts-node": "10.9.1",
"typescript": "5.0.4"
Expand All @@ -64,11 +65,18 @@
"format-output-files-ts": "eslint --no-eslintrc --config '.eslintrc.out-ts.cjs' --fix --fix-type layout './dist-ts/**/*.ts'",
"format-output-files-js": "eslint --no-eslintrc --config '.eslintrc.out.cjs' --fix 'dist-cjs/**/*js' 'dist-esm/**/*js'",
"generate-stub-package-json-for-cjs": "../scripts/generate-stub-package-json.cjs",
"lint": "eslint ./src --ext .ts,.tsx",
"lint": "yarn run lint:eslint && yarn run lint:circular",
"lint:circular": "madge --circular --no-color --no-spinner --extensions ts --warning ./src",
"lint:eslint": "eslint ./src --ext .ts,.tsx",
"remove-empty-js-files": "../scripts/remove-empty-js-files.cjs",
"tsc": "tsc --project tsconfig.build.json",
"tsc:plain": "tsc",
"test:coverage": "c8 --temp-directory /tmp ava",
"test:run": "c8 --temp-directory /tmp --reporter text ava"
},
"resolutions": {
"detective-typescript": "11.1.0",
"dependency-tree": "10.0.9",
"precinct": "11.0.5"
}
}
1,178 changes: 941 additions & 237 deletions main/yarn.lock

Large diffs are not rendered by default.

12 changes: 10 additions & 2 deletions resource-pool/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ty-ras-extras/resource-pool-fp-ts",
"version": "1.0.1",
"version": "2.0.0",
"author": {
"name": "Stanislav Muhametsin",
"email": "[email protected]",
Expand Down Expand Up @@ -51,6 +51,7 @@
"eslint-plugin-prettier": "4.2.1",
"eslint-plugin-sonarjs": "0.19.0",
"fp-ts": "2.12.3",
"madge": "6.1.0",
"prettier": "2.8.8",
"ts-node": "10.9.1",
"typescript": "5.0.4"
Expand All @@ -64,11 +65,18 @@
"format-output-files-ts": "eslint --no-eslintrc --config '.eslintrc.out-ts.cjs' --fix --fix-type layout './dist-ts/**/*.ts'",
"format-output-files-js": "eslint --no-eslintrc --config '.eslintrc.out.cjs' --fix 'dist-cjs/**/*js' 'dist-esm/**/*js'",
"generate-stub-package-json-for-cjs": "../scripts/generate-stub-package-json.cjs",
"lint": "eslint ./src --ext .ts,.tsx",
"lint": "yarn run lint:eslint && yarn run lint:circular",
"lint:circular": "madge --circular --no-color --no-spinner --extensions ts --warning ./src",
"lint:eslint": "eslint ./src --ext .ts,.tsx",
"remove-empty-js-files": "../scripts/remove-empty-js-files.cjs",
"tsc": "tsc --project tsconfig.build.json",
"tsc:plain": "tsc",
"test:coverage": "c8 --temp-directory /tmp ava",
"test:run": "c8 --temp-directory /tmp --reporter text ava"
},
"resolutions": {
"detective-typescript": "11.1.0",
"dependency-tree": "10.0.9",
"precinct": "11.0.5"
}
}
Loading

0 comments on commit 5f8d9bc

Please sign in to comment.