Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 16 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,22 @@ jobs:
- name: Run test
run: yarn test

check-dependencies:
name: Check dependencies
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6

- name: Setup node
uses: ./.github/actions/setup-node

- name: Run syncpack
run: yarn syncpack:lint

version-check:
name: Version check
needs: [format, lint, types, build, test]
needs: [format, lint, types, build, test, check-dependencies]
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
outputs:
Expand Down Expand Up @@ -112,11 +125,8 @@ jobs:
- name: Setup node
uses: ./.github/actions/setup-node

- name: Build
run: yarn build

- name: Publish to npm
run: yarn npm publish
- name: Publish workspace packages to npm
run: yarn turbo publish
env:
YARN_NPM_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ dist/
tsc_output
tsconfig*.tsbuildinfo

# turbo
.turbo

# yarn

.yarn/*
Expand Down
62 changes: 20 additions & 42 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "@sigmacomputing/plugin",
"name": "@sigmacomputing/plugin-sdk-root",
"version": "1.2.0",
"private": true,
"description": "Sigma Computing Plugin Client SDK",
"license": "MIT",
"homepage": "https://github.com/sigmacomputing/plugin",
Expand All @@ -15,24 +16,20 @@
"url": "https://github.com/sigmacomputing/plugin/issues"
},
"scripts": {
"build": "tsdown",
"build:watch": "tsdown --watch",
"build": "yarn turbo build",
"bump": "tsx scripts/bump-version.ts",
"format": "yarn oxfmt",
"lint": "yarn oxlint",
"format": "yarn g:format",
"g:format": "yarn oxfmt",
"g:lint": "yarn oxlint --type-aware",
"g:publlish": "cd $INIT_CWD && yarn npm publish --tolerate-republish",
"g:types": "cd $INIT_CWD && yarn exec tsc -b --noEmit",
"g:syncpack": "yarn exec syncpack",
"lint": "yarn g:lint",
"precommit": "lint-staged",
"publish": "yarn build && yarn npm publish",
"test": "vitest run",
"test:watch": "vitest",
"types": "tsc --noEmit"
},
"peerDependencies": {
"react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"
},
"peerDependenciesMeta": {
"react": {
"optional": true
}
"syncpack:fix": "yarn g:syncpack fix --dependency-types prod,dev",
"syncpack:lint": "yarn g:syncpack lint --dependency-types prod,dev",
"test": "yarn turbo test",
"types": "yarn turbo types && tsc --noEmit"
},
"devDependencies": {
"@actions/core": "^3.0.1",
Expand All @@ -54,36 +51,17 @@
"react": "19.2.5",
"react-dom": "19.2.5",
"semver": "^7.7.4",
"syncpack": "^14.3.1",
"tsdown": "^0.21.10",
"tsx": "^4.21.0",
"turbo": "^2.9.7",
"typescript": "^6.0.2",
"unplugin-unused": "^0.5.7",
"vitest": "^4.1.5"
},
"main": "./dist/cjs/index.cjs",
"module": "./dist/esm/index.js",
"types": "./dist/cjs/index.d.cts",
"unpkg": "./dist/umd/sigmacomputing-plugin.umd.js",
"jsdelivr": "./dist/umd/sigmacomputing-plugin.umd.js",
"exports": {
".": {
"import": {
"types": "./dist/esm/index.d.ts",
"default": "./dist/esm/index.js"
},
"require": {
"types": "./dist/cjs/index.d.cts",
"default": "./dist/cjs/index.cjs"
}
},
"./package.json": "./package.json"
},
"files": [
"dist/**/*",
"src/**/*",
"!src/**/__tests__/**/*"
],
"publishConfig": {
"access": "public"
"workspaces": {
"packages": [
"packages/*"
]
}
}
Loading