@consolidados/results 0.1.1 → 0.1.2

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@consolidados/results",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "Result types, ease and simple",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",
@@ -11,6 +11,9 @@
11
11
  "type": "git",
12
12
  "url": "https://github.com/consolidados/results"
13
13
  },
14
+ "files": [
15
+ "dist"
16
+ ],
14
17
  "exports": {
15
18
  "./option": {
16
19
  "types": "./dist/option/index.d.ts",
@@ -1,65 +0,0 @@
1
- ---
2
- name: Release & Publish to NPM
3
- # on: workflow_dispatch
4
- on:
5
- push:
6
- branches: [main, rc]
7
- paths-ignore: [CHANGELOG.md]
8
- workflow_dispatch:
9
- permissions:
10
- contents: write
11
- issues: write
12
- pull-requests: write
13
- jobs:
14
- release:
15
- runs-on: ubuntu-20.04
16
- if: >
17
- github.actor != 'Release Bot' && !contains(github.event.head_commit.message,
18
- 'chore: release')
19
- steps:
20
- - name: Checkout Source Code
21
- uses: actions/checkout@v4
22
-
23
- - name: Setup PNPM
24
- uses: pnpm/action-setup@v2
25
- with:
26
- version: latest
27
-
28
- - name: Setup Node
29
- uses: actions/setup-node@v4
30
- with:
31
- node-version: 20
32
- cache: 'pnpm'
33
-
34
- - name: Install Dependencies
35
- run: pnpm install --frozen-lockfile
36
-
37
- - name: Initialize Git user
38
- run: |
39
- git config --global user.email "contact@consolidados.digital"
40
- git config --global user.name "Release Bot"
41
-
42
- - name: Initialize NPM config
43
- run: npm config set //registry.npmjs.org/:_authToken=$NPM_TOKEN
44
- env:
45
- NPM_TOKEN: ${{secrets.NPM_TOKEN}}
46
-
47
- - name: Determine Release Type
48
- run: |
49
- if [[ $GITHUB_REF == refs/heads/main ]]; then
50
- echo "RELEASE_ARGS=--ci" >> $GITHUB_ENV
51
- elif [[ $GITHUB_REF == refs/heads/rc ]]; then
52
- echo "RELEASE_ARGS=--ci --preRelease=rc" >> $GITHUB_ENV
53
- else
54
- echo "Branch não autorizada para release."
55
- exit 1
56
- fi
57
-
58
- - name: Create Release
59
- run: npm run release $RELEASE_ARGS
60
- env:
61
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
62
- NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
63
-
64
- - name: End Message
65
- run: echo "All done!🥳 "
package/.release-it.json DELETED
@@ -1,25 +0,0 @@
1
- {
2
- "$schema": "https://unpkg.com/release-it/schema/release-it.json",
3
- "git": {
4
- "requireBranch": "main",
5
- "commitMessage": "chore: release v${version}"
6
- },
7
- "plugins": {
8
- "@release-it/conventional-changelog": {
9
- "preset": "angular"
10
- }
11
- },
12
- "hooks": {
13
- "before:init": ["git pull", "pnpm run test"],
14
- "afeter:bump": ["pnpm run build", "npx auto-changelog -p"]
15
- },
16
- "github": {
17
- "release": true
18
- },
19
- "npm": {
20
- "publish": true
21
- },
22
- "publishConfig": {
23
- "access": "public"
24
- }
25
- }
package/index.ts DELETED
@@ -1,3 +0,0 @@
1
- export * from "./src/helpers/match";
2
- export * from "./src/option";
3
- export * from "./src/result";
package/vite.config.ts DELETED
@@ -1,16 +0,0 @@
1
- /// <reference types="vitest" />
2
- import { defineConfig } from "vitest/config";
3
- import path from "path";
4
-
5
- export default defineConfig({
6
- resolve: {
7
- alias: {
8
- "@": path.resolve(__dirname, "./src"),
9
- },
10
- },
11
- plugins: [],
12
- test: {
13
- globals: true,
14
- setupFiles: "./test/setup-tests.ts",
15
- },
16
- });