@eduzz/miau-client 1.4.0 → 1.4.1-rc.4

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.
@@ -1,4 +1,4 @@
1
1
 
2
- > @eduzz/miau-client@1.4.0 build:types /home/runner/work/eduzz-miau/eduzz-miau/packages/client
2
+ > @eduzz/miau-client@1.4.1 build:types /home/runner/work/eduzz-miau/eduzz-miau/packages/client
3
3
  > tsc --emitDeclarationOnly --outDir dist
4
4
 
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@eduzz/miau-client",
3
- "version": "1.4.0",
3
+ "version": "1.4.1-rc.4",
4
4
  "description": "Eduzz Miau Client",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
7
7
  "scripts": {
8
8
  "lint": "eslint && tsc --noEmit",
9
- "test": "tsx --test src/**/*.test.ts",
9
+ "test": "tsx --test src/functions.test.ts",
10
10
  "build": "esbuild src/index.ts --bundle --sourcemap --platform=node --target=es2020 --outfile=dist/index.js",
11
11
  "build:types": "tsc --emitDeclarationOnly --outDir dist"
12
12
  },
@@ -1,9 +0,0 @@
1
- #!/bin/sh
2
- set -e
3
-
4
- cd ./packages/client
5
- mkdir -p ./dist/miau-types
6
- cp -r ../types/dist/. dist/miau-types
7
- sed -i 's|from '\''@eduzz/miau-types'\''|from '\''./miau-types'\''|g' dist/index.d.ts
8
-
9
- # pnpm remove @eduzz/miau-types
@@ -1,38 +0,0 @@
1
- #!/bin/bash
2
-
3
- set -e
4
-
5
- PACKAGE_JSON=$1
6
- BRANCH_NAME=$2
7
- RUN_NUMBER=$3
8
-
9
- if [[ ! "$BRANCH_NAME" =~ "master" ]]; then
10
- echo "Branch is not master, release candidate versioning will be applied."
11
- VERSION=$(jq -r .version "$PACKAGE_JSON")
12
- VERSION_RC="${VERSION}-rc.${RUN_NUMBER}"
13
- jq --arg version "$VERSION_RC" '.version = $version' "$PACKAGE_JSON" > "$PACKAGE_JSON.tmp"
14
- mv "$PACKAGE_JSON.tmp" "$PACKAGE_JSON"
15
- fi
16
-
17
- if [ -z "$PACKAGE_JSON" ]; then
18
- echo "Usage: $0 <package-json-path>"
19
- exit 1
20
- fi
21
-
22
- VERSION=$(jq -r .version "$PACKAGE_JSON")
23
- NAME=$(jq -r .name "$PACKAGE_JSON")
24
-
25
- echo "Checking if $PACKAGE_JSON should be released..."
26
- echo "Build Version: $VERSION"
27
-
28
- REMOTE_VERSION=$(npm view "$NAME" version 2>/dev/null || echo "")
29
-
30
- echo "NPM Version: $REMOTE_VERSION"
31
-
32
- if [ "$VERSION" = "$REMOTE_VERSION" ] || { [[ "$REMOTE_VERSION" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]] && [ "$(printf '%s\n%s' "$REMOTE_VERSION" "$VERSION" | sort -V | tail -n1)" != "$VERSION" ]; }; then
33
- echo "Version already published, skipping..."
34
- exit 1
35
- fi
36
-
37
- echo "New version detected, proceeding with release..."
38
- exit 0