Skip to content

Commit

Permalink
Update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
onigoetz committed Apr 19, 2023
1 parent c73f0a7 commit d50f8bb
Show file tree
Hide file tree
Showing 13 changed files with 45 additions and 40 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
with:
persist-credentials: false
- name: Setup PHP
uses: shivammathur/setup-php@2.24.0
uses: shivammathur/setup-php@2.25.1
with:
php-version: 8.1
extensions: mbstring, dom, intl
Expand Down
2 changes: 1 addition & 1 deletion packages/crafty-preset-maven/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"@swissquote/crafty-commons": "1.22.0"
},
"devDependencies": {
"fast-xml-parser": "4.2.0"
"fast-xml-parser": "4.2.1"
},
"engines": {
"node": ">=16"
Expand Down
2 changes: 1 addition & 1 deletion packages/crafty-preset-terser/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"build": "node ../../utils/build.js"
},
"devDependencies": {
"terser": "5.16.9"
"terser": "5.17.1"
},
"engines": {
"node": ">=16"
Expand Down
4 changes: 2 additions & 2 deletions packages/crafty-preset-typescript/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,8 @@ module.exports = {
options.moduleFileExtensions.push("cts");

// Map .mjs to .mts and .cjs to .cts files for resolution
options.moduleNameMapper['^(\\.{1,2}/.*)\\.mjs$'] = '$1.mts';
options.moduleNameMapper['^(\\.{1,2}/.*)\\.cjs$'] = '$1.cts';
options.moduleNameMapper["^(\\.{1,2}/.*)\\.mjs$"] = "$1.mts";
options.moduleNameMapper["^(\\.{1,2}/.*)\\.cjs$"] = "$1.cts";
},
webpack(crafty, bundle, chain) {
const configFile = findUpSync("tsconfig.json", { cwd: process.cwd() });
Expand Down
2 changes: 1 addition & 1 deletion packages/crafty-runner-rollup/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"@rollup/plugin-node-resolve": "15.0.2",
"@rollup/plugin-replace": "5.0.2",
"@rollup/pluginutils": "5.0.2",
"rollup": "3.20.4",
"rollup": "3.20.6",
"rollup-plugin-pnp-resolve": "2.0.0",
"rollup-plugin-terser": "7.0.2"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -153,12 +153,11 @@ Generated by [AVA](https://avajs.dev).
stdall: `␊
[__:__:__] Starting Crafty __version__...␊
ts-jest[versions] (WARN) Module jest is not installed. If you're experiencing issues, consider installing a supported version (>=29.0.0 <30.0.0-0).␊
ts-jest[versions] (WARN) Module jest is not installed. If you're experiencing issues, consider installing a supported version (>=29.0.0 <30.0.0-0).␊
ts-jest[versions] (WARN) Module jest is not installed. If you're experiencing issues, consider installing a supported version (>=29.0.0 <30.0.0-0).␊
PASS src/__tests__/math.mts␊
PASS src/__tests__/calculator.mts␊
✓ adds two numbers␊
✓ advanced math␊
Test Suites: 2 passed, 2 total␊
Test Suites: 1 passed, 1 total␊
Tests: 2 passed, 2 total␊
Snapshots: 0 total␊
Time: _____s␊
Expand Down
Binary file not shown.
4 changes: 3 additions & 1 deletion packages/integration/__tests__/crafty-preset-jest.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,9 @@ test.serial("Succeeds with typescript", async t => {
});

test.serial("Succeeds with typescript modules", async t => {
const cwd = await testUtils.getCleanFixtures("crafty-preset-jest/typescript-modules");
const cwd = await testUtils.getCleanFixtures(
"crafty-preset-jest/typescript-modules"
);

const result = await testUtils.run(["test"], cwd);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,10 @@ test.serial("Compiles TypeScript Modules", async t => {
const script = testUtils.readForSnapshot(cwd, "dist/js/script.mjs");
t.snapshot(script);

t.truthy(script.indexOf('import test from"./Component.mjs"') > -1, "script.mjs should contain 'import test from\"./Component.mjs\"'")
t.truthy(
script.indexOf('import test from"./Component.mjs"') > -1,
"script.mjs should contain 'import test from\"./Component.mjs\"'"
);

t.snapshot(testUtils.readForSnapshot(cwd, "dist/js/Component.mjs"));
});
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
import { it } from "@jest/globals";
import { doSomeMath } from "../calculator.mjs";
import { add } from "../math.mjs";

it("adds two numbers", () => {
expect(add(2,2)).toEqual(4);
});

it("advanced math", () => {
expect(doSomeMath()).toEqual(6);
Expand Down

This file was deleted.

2 changes: 1 addition & 1 deletion packages/rollup-plugin-eslint/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"ansi-colors": "^4.0.0",
"ava": "5.2.0",
"c8": "7.13.0",
"rollup": "3.20.4"
"rollup": "3.20.6"
},
"dependencies": {
"@rollup/pluginutils": "5.0.2",
Expand Down
44 changes: 22 additions & 22 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2698,7 +2698,7 @@ __metadata:
resolution: "@swissquote/crafty-preset-maven@workspace:packages/crafty-preset-maven"
dependencies:
"@swissquote/crafty-commons": 1.22.0
fast-xml-parser: 4.2.0
fast-xml-parser: 4.2.1
languageName: unknown
linkType: soft

Expand Down Expand Up @@ -2780,7 +2780,7 @@ __metadata:
version: 0.0.0-use.local
resolution: "@swissquote/crafty-preset-terser@workspace:packages/crafty-preset-terser"
dependencies:
terser: 5.16.9
terser: 5.17.1
languageName: unknown
linkType: soft

Expand Down Expand Up @@ -2838,7 +2838,7 @@ __metadata:
"@swissquote/crafty-commons": 1.22.0
"@swissquote/crafty-preset-terser": 1.22.0
fsevents: ~2.3.2
rollup: 3.20.4
rollup: 3.20.6
rollup-plugin-pnp-resolve: 2.0.0
rollup-plugin-terser: 7.0.2
dependenciesMeta:
Expand Down Expand Up @@ -3111,7 +3111,7 @@ __metadata:
ava: 5.2.0
c8: 7.13.0
eslint: 8.38.0
rollup: 3.20.4
rollup: 3.20.6
languageName: unknown
linkType: soft

Expand Down Expand Up @@ -3240,9 +3240,9 @@ __metadata:
linkType: hard

"@types/estree@npm:*, @types/estree@npm:^1.0.0":
version: 1.0.0
resolution: "@types/estree@npm:1.0.0"
checksum: 910d97fb7092c6738d30a7430ae4786a38542023c6302b95d46f49420b797f21619cdde11fa92b338366268795884111c2eb10356e4bd2c8ad5b92941e9e6443
version: 1.0.1
resolution: "@types/estree@npm:1.0.1"
checksum: e9aa175eacb797216fafce4d41e8202c7a75555bc55232dee0f9903d7171f8f19f0ae7d5191bb1a88cb90e65468be508c0df850a9fb81b4433b293a5a749899d
languageName: node
linkType: hard

Expand Down Expand Up @@ -6095,9 +6095,9 @@ __metadata:
linkType: hard

"electron-to-chromium@npm:^1.4.284":
version: 1.4.366
resolution: "electron-to-chromium@npm:1.4.366"
checksum: e8217ef43a0b2eeefd92bcc9118488f73986b556978952c5ad335c3bb8ad50de8a28a5b85aa8bc18187119a7bf168bcd17324ef1d6f8086534e9b81e9713774f
version: 1.4.368
resolution: "electron-to-chromium@npm:1.4.368"
checksum: b8ec4128a81c86c287cb2d677504c64d50f30c3c1d6dd9700a93797c6311f9f94b1c49a3e5112f5cfb3987a9bbade0133f9ec9898dae592db981059d5c2abdbb
languageName: node
linkType: hard

Expand Down Expand Up @@ -6808,14 +6808,14 @@ __metadata:
languageName: node
linkType: hard

"fast-xml-parser@npm:4.2.0":
version: 4.2.0
resolution: "fast-xml-parser@npm:4.2.0"
"fast-xml-parser@npm:4.2.1":
version: 4.2.1
resolution: "fast-xml-parser@npm:4.2.1"
dependencies:
strnum: ^1.0.5
bin:
fxparser: src/cli/cli.js
checksum: 2e634740367781c365bd3d41608c1b39eceb8fc8a551228da09887220135cbaf16527c0d919c3334bea6ed416dc0171a6a8546a2beb3a4096f7cc32bbbc04091
checksum: 7b9fb704dc20fd86d2ff91420f9cb90bab5d2d829e09baab1fdf25658f36385878b156f467eb9d20cd5f67b3e4f51b4bb10f74d872e887923851f0bd2e2f2673
languageName: node
linkType: hard

Expand Down Expand Up @@ -12132,17 +12132,17 @@ __metadata:
languageName: node
linkType: hard

"rollup@npm:3.20.4":
version: 3.20.4
resolution: "rollup@npm:3.20.4"
"rollup@npm:3.20.6":
version: 3.20.6
resolution: "rollup@npm:3.20.6"
dependencies:
fsevents: ~2.3.2
dependenciesMeta:
fsevents:
optional: true
bin:
rollup: dist/bin/rollup
checksum: 6b80ca4c455b4009cf1ed528bbf5906c0620eb15e38461f697384bd35f1537914599aa853d998be7a6683ce7014108e563b57c183cc8ee842906c33bc2051d12
checksum: fa30f1e1d214b8c62e631d3c181a75d61bc9c20fca38220d6f938bb3bf734a874e407cd641c90f550dc2b127df5029dfb3108be08934a654f1f40b50f368b0c2
languageName: node
linkType: hard

Expand Down Expand Up @@ -13180,17 +13180,17 @@ __metadata:
languageName: node
linkType: hard

"terser@npm:5.16.9, terser@npm:^5.0.0, terser@npm:^5.16.5, terser@npm:^5.9.0":
version: 5.16.9
resolution: "terser@npm:5.16.9"
"terser@npm:5.17.1, terser@npm:^5.0.0, terser@npm:^5.16.5, terser@npm:^5.9.0":
version: 5.17.1
resolution: "terser@npm:5.17.1"
dependencies:
"@jridgewell/source-map": ^0.3.2
acorn: ^8.5.0
commander: ^2.20.0
source-map-support: ~0.5.20
bin:
terser: bin/terser
checksum: b373693ee01ce08cc9b9595d57df889acbbc899d929a7fe53662330ce954d53145582f6715c9cc4839d555f5769a28fbeb203155b54e3a9c6c646db292002edd
checksum: 69b0e80e3c4084db2819de4d6ae8a2ba79f2fcd7ed6df40fe4b602ec7bfd8e889cc63c7d5268f30990ffecbf6eeda18f857adad9386fe2c2331b398d58ed855c
languageName: node
linkType: hard

Expand Down

0 comments on commit d50f8bb

Please sign in to comment.