diff --git a/packages/krl-parser/package.json b/packages/krl-parser/package.json index 96452495..62069513 100644 --- a/packages/krl-parser/package.json +++ b/packages/krl-parser/package.json @@ -8,9 +8,9 @@ "dist/src" ], "scripts": { - "prepublish": "npm run build", + "prepare": "npm run build", "start": "ava -w", - "test": "ava", + "test": "ava reset-cache && ava", "build": "npm run build:ts -s && npm run build:spec -s", "build:ts": "rm -rf dist && tsc", "build:spec": "node specBuilder.js > spec.md" @@ -31,7 +31,7 @@ }, "homepage": "https://github.com/Picolab/pico-engine#readme", "devDependencies": { - "ava": "^2.4.0", + "ava": "^5.3.1", "ts-node": "^10.9.1", "typescript": "^5.2.2" }, @@ -40,7 +40,6 @@ "line-column": "^1.0.2" }, "ava": { - "compileEnhancements": false, "extensions": [ "ts" ], @@ -48,10 +47,8 @@ "ts-node/register" ], "files": [ - "test/**/*" - ], - "helpers": [ - "test/helpers/**/*" + "test/**/*", + "!test/helpers/**/*" ] }, "gitHead": "26aee8aeb73a2450f9224f2d8d81f3a3d49b33f2" diff --git a/packages/krl-stdlib/package.json b/packages/krl-stdlib/package.json index 6080e177..8abbddcf 100644 --- a/packages/krl-stdlib/package.json +++ b/packages/krl-stdlib/package.json @@ -8,7 +8,7 @@ "dist" ], "scripts": { - "prepublish": "npm run build", + "prepare": "npm run build", "start": "ava -w", "test": "ava", "build": "rm -rf dist && tsc" @@ -29,28 +29,27 @@ }, "homepage": "https://github.com/Picolab/pico-engine#readme", "devDependencies": { - "@types/abstract-leveldown": "^5.0.1", - "@types/leveldown": "^4.0.0", - "@types/levelup": "^3.1.0", "@types/lodash": "^4.14.123", "@types/node": "^20.8.10", - "ava": "^1.4.1", + "ava": "^5.3.1", "ts-node": "^10.4.0", "typescript": "^5.2.2" }, "dependencies": { "json-log": "^3.0.1", "lodash": "^4.17.11", - "pico-framework": "^0.6.0", + "pico-framework": "^0.7.0", "select-when": "^0.1.7" }, "ava": { - "compileEnhancements": false, "extensions": [ "ts" ], "require": [ "ts-node/register" + ], + "files": [ + "test.ts" ] }, "gitHead": "26aee8aeb73a2450f9224f2d8d81f3a3d49b33f2" diff --git a/packages/pico-engine-core/package.json b/packages/pico-engine-core/package.json index 27878b16..22450189 100644 --- a/packages/pico-engine-core/package.json +++ b/packages/pico-engine-core/package.json @@ -28,13 +28,13 @@ "node": ">=20.0.0" }, "scripts": { - "prepublish": "npm run build", + "prepare": "npm run build", "build": "rm -rf dist && tsc", - "test": "ava" + "test": "ava reset-cache && ava" }, "dependencies": { "bs58": "^4.0.1", - "cross-fetch": "^3.0.5", + "cross-fetch": "^4.0.0", "cuid": "^2.1.8", "didcomm-node": "^0.4.1", "krl-compiler": "^1.3.0", @@ -43,7 +43,7 @@ "lodash": "^4.17.11", "memdown": "^5.1.0", "moment-timezone": "^0.5.31", - "node-schedule": "^1.3.2", + "node-schedule": "^2.1.0", "normalize-url": "^5.0.0", "p-memoize": "^4.0.0", "pico-framework": "^0.6.0", @@ -57,17 +57,20 @@ "@types/levelup": "^4.3.3", "@types/lodash": "^4.14.123", "@types/node": "^20.8.10", - "ava": "^1.4.1", + "ava": "^5.3.1", "ts-node": "^10.4.0", "typescript": "^5.2.2" }, "ava": { - "compileEnhancements": false, "extensions": [ "ts" ], "require": [ "ts-node/register" + ], + "files": [ + "test/**/*", + "!test/helpers/**/*" ] }, "gitHead": "26aee8aeb73a2450f9224f2d8d81f3a3d49b33f2" diff --git a/packages/pico-engine/package.json b/packages/pico-engine/package.json index e2d7ace6..afe60336 100644 --- a/packages/pico-engine/package.json +++ b/packages/pico-engine/package.json @@ -33,13 +33,13 @@ "node": ">=20.0.0" }, "scripts": { - "prepublish": "npm run build", + "prepare": "npm run build", "build": "rm -rf dist && tsc", "start": "npm run dev -s", "dev": "scriptsp -r dev:tsc dev:api", "dev:tsc": "tsc -w --preserveWatchOutput", "dev:api": "onchange -i -k dist/ -- node dist/cli.js", - "test": "ava" + "test": "ava reset-cache && ava" }, "dependencies": { "body-parser": "^1.18.3", @@ -73,7 +73,7 @@ "@types/levelup": "^3.1.0", "@types/lodash": "^4.14.123", "@types/node": "^20.8.10", - "ava": "^1.4.1", + "ava": "^5.3.1", "onchange": "^6.0.0", "scriptsp": "^1.1.1", "temp-dir": "^2.0.0", @@ -81,12 +81,15 @@ "typescript": "^5.2.2" }, "ava": { - "compileEnhancements": false, "extensions": [ "ts" ], "require": [ "ts-node/register" + ], + "files": [ + "test/**/*", + "!test/helpers/**/*" ] }, "gitHead": "26aee8aeb73a2450f9224f2d8d81f3a3d49b33f2"