Skip to content

Commit

Permalink
Switch to unbuild. Check config with attw
Browse files Browse the repository at this point in the history
  • Loading branch information
KaiSpencer committed May 21, 2024
1 parent 2cd2d3b commit c7f49ce
Show file tree
Hide file tree
Showing 5 changed files with 1,486 additions and 54 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/library-config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Library Config

on: pull_request

jobs:
check_library_config:
runs-on: ubuntu-latest
- name: Checkout
uses: actions/checkout@v3

- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 20

- uses: pnpm/action-setup@v2
name: Install pnpm
id: pnpm-install
with:
version: 8
run_install: false

- name: Get pnpm store directory
id: pnpm-cache
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: pnpm install

- name: Check library config
run: pnpm attw --pack .
19 changes: 11 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,26 @@
"name": "react-trello-ts",
"version": "2.1.0",
"description": "Pluggable typesafe components to add a trello like kanban board to your application",
"types": "./dist/index.d.ts",
"main": "./dist/index.js",
"type": "module",
"exports": {
".": {
"require": "./dist/index.js",
"import": "./dist/index.mjs"
"import": "./dist/index.mjs",
"require": "./dist/index.ccjs"
}
},
"main": "./dist/index.cjs",
"types": "./dist/index.d.ts",
"files": [
"dist",
"README"
"README"
],
"scripts": {
"prepublish": "pnpm build",
"storybook": "storybook dev -p 6006",
"storybook:no-open": "pnpm storybook --no-open",
"test": "start-server-and-test storybook:no-open http://localhost:6006 test-storybook",
"test-storybook": "test-storybook",
"dev": "tsup --watch",
"build": "tsup",
"build": "unbuild",
"docs": "storybook build -o docs",
"build-storybook": "storybook build -o storybook-build",
"lint": "pnpm biome check .",
Expand All @@ -45,6 +45,7 @@
},
"homepage": "https://github.com/KaiSpencer/react-trello-ts",
"dependencies": {
"@arethetypeswrong/cli": "^0.15.3",
"autosize": "^4.0.4",
"classnames": "^2.5.1",
"immer": "^9.0.21",
Expand All @@ -57,6 +58,7 @@
"@biomejs/biome": "1.4.1",
"@changesets/cli": "^2.27.1",
"@chromatic-com/storybook": "^1",
"@microsoft/api-extractor": "^7.43.7",
"@storybook/addon-essentials": "^8.1.1",
"@storybook/cli": "^8.1.1",
"@storybook/core-events": "^8.1.1",
Expand All @@ -77,7 +79,8 @@
"storybook": "^8.1.1",
"styled-components": "^5.3.11",
"tsup": "^8.0.1",
"typescript": "^5.3.3"
"typescript": "^5.3.3",
"unbuild": "^2.0.0"
},
"peerDependencies": {
"react": ">=16.8.0 <=18",
Expand Down
Loading

0 comments on commit c7f49ce

Please sign in to comment.