@anterior/brrr 0.1.1 → 0.1.201

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@anterior/brrr",
3
- "version": "0.1.1",
3
+ "version": "0.1.201",
4
4
  "description": "Horizontally scalable workflow scheduling with pluggable backends",
5
5
  "type": "module",
6
6
  "bin": {
7
- "brrr-test-integration": "brrr-test-integration"
7
+ "brrr-test-integration": "scripts/brrr-test-integration.sh"
8
8
  },
9
9
  "license": "AGPL-3.0-only",
10
10
  "scripts": {
package/package.nix CHANGED
@@ -1,6 +1,22 @@
1
- { package-lock2nix, nodejs }:
1
+ {
2
+ package-lock2nix,
3
+ git,
4
+ moreutils,
5
+ jq,
6
+ nodejs,
7
+ writeShellApplication,
8
+ }:
2
9
 
3
10
  package-lock2nix.mkNpmModule {
4
11
  buildInputs = [ nodejs ];
5
12
  src = ./.;
13
+ passthru.npm-version-to-git = writeShellApplication {
14
+ name = "npm-version-to-git";
15
+ runtimeInputs = [
16
+ git
17
+ moreutils
18
+ jq
19
+ ];
20
+ text = builtins.readFile ./scripts/npm-version-to-git.sh;
21
+ };
6
22
  }
@@ -0,0 +1,10 @@
1
+ #!/usr/bin/env bash
2
+
3
+ set -euo pipefail
4
+
5
+ count="$(git rev-list @ --count)"
6
+ <package.json \
7
+ jq \
8
+ --arg gc "$count" \
9
+ '. * { version : "\(.version | split(".")[:2] | join(".")).\($gc)"}' \
10
+ | sponge package.json
package/.envrc DELETED
@@ -1 +0,0 @@
1
- use flake .#typescript