Skip to content

Commit 07bb409

Browse files
committed
updates
1 parent fffb23e commit 07bb409

File tree

366 files changed

+870
-10554
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

366 files changed

+870
-10554
lines changed

.github/workflows/publish-dev.yml

+49
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: Manual Dev Publish
2+
3+
on:
4+
workflow_dispatch: # Manual trigger only
5+
6+
jobs:
7+
publish-dev:
8+
name: Publish Dev Version
9+
runs-on: ubuntu-latest
10+
permissions:
11+
contents: read
12+
id-token: write # For npm OIDC auth
13+
14+
steps:
15+
- name: Checkout code
16+
uses: actions/checkout@v4
17+
18+
- name: Setup Node.js
19+
uses: actions/setup-node@v4
20+
with:
21+
node-version: '20'
22+
23+
- name: Install pnpm
24+
uses: pnpm/action-setup@v4
25+
with:
26+
version: latest
27+
28+
- name: Install dependencies
29+
run: pnpm install --frozen-lockfile
30+
31+
- name: Generate dev version
32+
id: version
33+
run: |
34+
BASE_VERSION=$(node -p "require('./package.json').version")
35+
TIMESTAMP=$(date -u +"%Y%m%d%H%M%S")
36+
DEV_VERSION="${BASE_VERSION}-dev-${TIMESTAMP}"
37+
echo "Generated version: $DEV_VERSION"
38+
echo "version=$DEV_VERSION" >> $GITHUB_OUTPUT
39+
40+
- name: Update package version
41+
run: npm pkg set version="${{ steps.version.outputs.version }}"
42+
43+
- name: Build package
44+
run: pnpm run build
45+
46+
- name: Publish to npm (dev tag)
47+
run: pnpm publish --tag dev --no-git-checks
48+
env:
49+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Usability, consistency, and performance are key focuses of trello.js, and it als
2626

2727
## Installation
2828

29-
**Node.js 18.0.0 or newer is required.**
29+
**Node.js 20.0.0 or newer is required.**
3030

3131
Install with the npm:
3232

eslint.config.mjs

+8-6
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,21 @@ import stylisticTs from '@stylistic/eslint-plugin-ts';
77

88
export default defineConfig([
99
{ files: ['**/*.{js,mjs,cjs,ts}'] },
10-
{ files: ['**/*.{js,mjs,cjs,ts}'], languageOptions: { globals: {...globals.browser, ...globals.node} } },
10+
{ files: ['**/*.{js,mjs,cjs,ts}'], languageOptions: { globals: { ...globals.browser, ...globals.node } } },
1111
{ files: ['**/*.{js,mjs,cjs,ts}'], plugins: { js }, extends: ['js/recommended'] },
1212
tseslint.configs.recommended,
1313
{
1414
plugins: {
1515
'@stylistic': stylistic,
16-
'@stylistic/ts': stylisticTs
16+
'@stylistic/ts': stylisticTs,
1717
},
1818
rules: {
19+
'@stylistic/eol-last': ['error', 'always'],
1920
'@stylistic/ts/indent': ['error', 2],
20-
'@stylistic/ts/quotes': ['error', 'single'],
2121
'@stylistic/ts/quote-props': ['error', 'as-needed'],
22-
'@stylistic/eol-last': ['error', 'always'],
23-
}
24-
}
22+
'@stylistic/ts/quotes': ['error', 'single'],
23+
'@stylistic/ts/semi': 'error',
24+
'@typescript-eslint/consistent-type-imports': 'error',
25+
},
26+
},
2527
]);

package.json

+18-12
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
"description": "Simple Trello API Client",
55
"author": "Vladislav Tupikin <[email protected]>",
66
"license": "MIT",
7-
"main": "dist/index.js",
8-
"types": "dist/index.d.ts",
97
"type": "module",
108
"scripts": {
119
"build": "rollup -c rollup.config.ts --configPlugin typescript",
@@ -16,7 +14,8 @@
1614
"lint:fix": "pnpm run lint --fix",
1715
"test": "pnpm run test:unit && pnpm run test:integration",
1816
"test:unit": "vitest run tests/unit",
19-
"test:integration": "vitest run tests/integration --sequence.sequential"
17+
"test:integration": "vitest run tests/integration --sequence.sequential",
18+
"test:integration:coverage": "pnpm run test:integration --coverage"
2019
},
2120
"repository": "https://github.com/MrRefactoring/trello.js",
2221
"homepage": "https://mrrefactoring.github.io/trello.js",
@@ -35,33 +34,40 @@
3534
"webhooks",
3635
"atlassian"
3736
],
37+
"main": "./dist/index.js",
38+
"types": "./dist/index.d.ts",
39+
"exports": {
40+
".": {
41+
"types": "./dist/index.d.ts",
42+
"import": "./dist/index.js"
43+
}
44+
},
3845
"engines": {
39-
"node": ">=18"
46+
"node": ">=20"
4047
},
4148
"devDependencies": {
42-
"@eslint/js": "^9.25.0",
49+
"@eslint/js": "^9.25.1",
4350
"@rollup/plugin-alias": "^5.1.1",
4451
"@rollup/plugin-commonjs": "^28.0.3",
4552
"@rollup/plugin-node-resolve": "^16.0.1",
4653
"@rollup/plugin-typescript": "^12.1.2",
4754
"@stylistic/eslint-plugin-js": "^4.2.0",
4855
"@stylistic/eslint-plugin-ts": "^4.2.0",
49-
"@types/node": "^18.19.86",
50-
"@vitest/coverage-v8": "^3.1.1",
56+
"@types/node": "^18.19.87",
57+
"@vitest/coverage-v8": "^3.1.2",
5158
"dotenv": "^16.5.0",
52-
"eslint": "^9.25.0",
59+
"eslint": "^9.25.1",
5360
"globals": "^16.0.0",
5461
"prettier": "^3.5.3",
5562
"prettier-plugin-jsdoc": "^1.3.2",
56-
"rollup": "^4.40.0",
63+
"rollup": "^4.40.1",
5764
"tslib": "^2.8.1",
5865
"typedoc": "^0.28.3",
5966
"typescript": "^5.8.3",
60-
"typescript-eslint": "^8.30.1",
61-
"vitest": "^3.1.1"
67+
"typescript-eslint": "^8.31.1",
68+
"vitest": "^3.1.2"
6269
},
6370
"dependencies": {
64-
"form-data": "^4.0.2",
6571
"zod": "^3.24.3"
6672
}
6773
}

0 commit comments

Comments
 (0)