Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
zbeyens committed Dec 21, 2024
1 parent 01fc45d commit c1c6824
Show file tree
Hide file tree
Showing 12 changed files with 1,960 additions and 2,366 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci-templates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
- uses: pnpm/action-setup@v4
name: Install pnpm
with:
version: 9
version: 9.15.1
run_install: false

- name: Setup Node.js
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lint-typecheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:
- uses: pnpm/action-setup@v4
name: Install pnpm
with:
version: 9
version: 9.15.1
run_install: false

- name: Use Node.js ${{ matrix.node-version }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/registry.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
- uses: pnpm/action-setup@v4
name: Install pnpm
with:
version: 9
version: 9.15.1
run_install: false

- name: Setup Node.js
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/sync-templates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
- uses: pnpm/action-setup@4
name: Install pnpm
with:
version: 9
version: 9.15.1
run_install: false

- name: ♻️ Setup Node.js
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:
- uses: pnpm/action-setup@v4
name: Install pnpm
with:
version: 9
version: 9.15.1
run_install: false

- name: ♻️ Setup Node.js
Expand Down
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
engine-strict=true
auto-install-peers=true
resolve-peers-from-workspace-root=true
node-linker=hoisted
15 changes: 12 additions & 3 deletions config/tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ import { type Options, defineConfig } from 'tsup';
const silent = false;

const PACKAGE_ROOT_PATH = process.env.INIT_CWD ?? process.cwd();
console.log('INIT_CWD', process.env.INIT_CWD);
console.log('process.cwd', process.cwd());
const WORKSPACE_PATH = path.resolve(__dirname, '../..');

const INPUT_TS_FILE_PATH = path.join(PACKAGE_ROOT_PATH, 'src/index.ts');
const INPUT_TSX_FILE_PATH = path.join(PACKAGE_ROOT_PATH, 'src/index.tsx');
Expand Down Expand Up @@ -37,7 +36,17 @@ export default defineConfig((opts) => {
const options: Options = {
...opts,
clean: true,
dts: true,
dts: {
compilerOptions: {
paths: {
jotai: [path.join(WORKSPACE_PATH, 'node_modules/jotai')],
'jotai/*': [path.join(WORKSPACE_PATH, 'node_modules/jotai/*')],
'jotai-x': [path.join(WORKSPACE_PATH, 'node_modules/jotai-x')],
'zustand-x': [path.join(WORKSPACE_PATH, 'node_modules/zustand-x')],
},
},
resolve: true,
},
format: ['cjs', 'esm'],
sourcemap: true,
splitting: false,
Expand Down
109 changes: 56 additions & 53 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"docs:build": "cd docs && pnpm run && pnpm run build",
"docs:start": "cd docs && pnpm run && pnpm run start",
"e2e": "pnpm run playwright test",
"echo": "echo $INIT_CWD",
"g:Test:Watch": "turbo --filter \"./packages/**\" test:watch",
"g:brl": "turbo --filter \"./packages/**\" brl",
"g:build": "turbo --filter \"./packages/**\" build",
Expand Down Expand Up @@ -52,13 +53,13 @@
"lint:templates": "turbo --filter \"./templates/plate-playground-template/**\" lint",
"nuke:node_modules": "rimraf '**/node_modules'",
"p:brl": "sh scripts/brl.sh",
"p:build": "echo $INIT_CWD && tsup --config=${PROJECT_CWD}/config/tsup.config.ts",
"p:build:watch": "cd $INIT_CWD && tsup --config=${PROJECT_CWD}/config/tsup.config.ts --watch",
"p:build": "cd $INIT_CWD && tsup --config=../../config/tsup.config.ts",
"p:build:watch": "cd $INIT_CWD && tsup --config=../../config/tsup.config.ts --watch",
"p:clean": "cd $INIT_CWD && rimraf dist && jest --clear-cache",
"p:lint": "eslint $INIT_CWD/src --color",
"p:lint:fix": "eslint $INIT_CWD/src --color --fix",
"p:test": "cd $INIT_CWD && jest --config=${PROJECT_CWD}/jest.config.cjs --maxWorkers=1 --passWithNoTests $INIT_CWD ",
"p:tsup": "cd $INIT_CWD && tsup --config=${PROJECT_CWD}/config/tsup.config.ts",
"p:test": "cd $INIT_CWD && jest --config=../../jest.config.cjs --maxWorkers=1 --passWithNoTests $INIT_CWD ",
"p:tsup": "cd $INIT_CWD && tsup --config=../../config/tsup.config.ts",
"p:typecheck": "cd $INIT_CWD && tsc -p $INIT_CWD/tsconfig.json",
"release": "pnpm run build && pnpm run changeset publish",
"sync:plate": "node templates/plate-playground-template/scripts/sync-plate.cjs",
Expand All @@ -70,73 +71,71 @@
"typecheck:all": "pnpm -w run g:typecheck:all"
},
"devDependencies": {
"@changesets/cli": "^2.27.11",
"@changesets/cli": "^2.27.7",
"@changesets/get-github-info": "^0.5.2",
"@dword-design/eslint-plugin-import-alias": "^5.1.1",
"@ianvs/prettier-plugin-sort-imports": "^4.4.0",
"@ianvs/prettier-plugin-sort-imports": "^4.3.1",
"@playwright/test": "1.47.0",
"@roarr/cli": "^5.12.4",
"@swc/core": "1.7.26",
"@swc/jest": "0.2.36",
"@tailwindcss/typography": "^0.5.15",
"@testing-library/dom": "10.4.0",
"@testing-library/jest-dom": "6.5.0",
"@testing-library/react": "^16.1.0",
"@testing-library/react": "^16.0.1",
"@testing-library/react-hooks": "^8.0.1",
"@testing-library/user-event": "^14.5.2",
"@types/eslint": "^8.56.12",
"@types/is-hotkey": "^0.1.10",
"@types/jest": "^29.5.14",
"@types/lodash": "^4.17.13",
"@types/node": "^22.10.2",
"@types/prismjs": "^1.26.5",
"@types/jest": "^29.5.13",
"@types/lodash": "^4.17.7",
"@types/node": "^22.5.4",
"@types/prismjs": "^1.26.4",
"@types/raf": "^3.4.3",
"@types/react": "^18.3.18",
"@types/react-dom": "^18.3.5",
"@types/validator": "^13.12.2",
"@typescript-eslint/eslint-plugin": "^8.18.1",
"@typescript-eslint/parser": "^8.18.1",
"@types/react": "^18.3.12",
"@types/react-dom": "^18.3.1",
"@types/validator": "^13.12.1",
"@typescript-eslint/eslint-plugin": "^8.5.0",
"@typescript-eslint/parser": "^8.5.0",
"app-root-path": "^3.1.0",
"autoprefixer": "^10.4.20",
"barrelsby": "^2.8.1",
"concurrently": "^9.1.0",
"concurrently": "^9.0.1",
"cross-env": "^7.0.3",
"dotenv": "^16.4.7",
"eslint": "^8.57.1",
"dotenv": "^16.4.5",
"eslint": "^8.57.0",
"eslint-config-next": "15.0.3",
"eslint-config-prettier": "^9.1.0",
"eslint-config-turbo": "^2.3.3",
"eslint-import-resolver-typescript": "^3.7.0",
"eslint-config-turbo": "^2.1.2",
"eslint-import-resolver-typescript": "^3.6.3",
"eslint-plugin-boundaries": "^4.2.2",
"eslint-plugin-chai-friendly": "^1.0.1",
"eslint-plugin-cypress": "^3.6.0",
"eslint-plugin-import": "^2.31.0",
"eslint-plugin-jest": "^28.10.0",
"eslint-plugin-jest-dom": "^5.5.0",
"eslint-plugin-cypress": "^3.5.0",
"eslint-plugin-import": "^2.30.0",
"eslint-plugin-jest": "^28.8.3",
"eslint-plugin-jest-dom": "^5.4.0",
"eslint-plugin-jest-formatting": "^3.1.0",
"eslint-plugin-jsx-a11y": "^6.10.2",
"eslint-plugin-jsx-a11y": "^6.10.0",
"eslint-plugin-mdx": "^3.1.5",
"eslint-plugin-perfectionist": "^3.9.1",
"eslint-plugin-playwright": "^1.8.3",
"eslint-plugin-perfectionist": "^3.5.0",
"eslint-plugin-playwright": "^1.6.2",
"eslint-plugin-prettier": "^5.2.1",
"eslint-plugin-promise": "^7.2.1",
"eslint-plugin-react": "^7.37.2",
"eslint-plugin-promise": "^7.1.0",
"eslint-plugin-react": "^7.36.1",
"eslint-plugin-react-hooks": "^4.6.2",
"eslint-plugin-regexp": "^2.7.0",
"eslint-plugin-regexp": "^2.6.0",
"eslint-plugin-tailwindcss": "^3.17.5",
"eslint-plugin-testing-library": "^6.5.0",
"eslint-plugin-testing-library": "^6.3.0",
"eslint-plugin-unicorn": "^55.0.0",
"eslint-plugin-unused-imports": "^4.1.4",
"is-hotkey": "^0.2.0",
"eslint-plugin-unused-imports": "^4.1.3",
"jest": "29.7.0",
"jest-environment-jsdom": "^29.7.0",
"patch-package": "^8.0.0",
"prettier": "^3.4.2",
"prettier": "^3.3.3",
"prettier-plugin-jsdoc": "^1.3.0",
"prettier-plugin-packagejson": "^2.5.6",
"prettier-plugin-tailwindcss": "^0.6.9",
"prettier-plugin-packagejson": "^2.5.2",
"prettier-plugin-tailwindcss": "^0.6.6",
"react": "^18.3.1",
"react-dnd": "16.0.1",
"react-dnd-test-backend": "^16.0.1",
"react-dom": "^18.3.1",
"react-is": "18.3.1",
Expand All @@ -149,27 +148,31 @@
"slate-hyperscript": "0.100.0",
"slate-react": "0.111.0",
"slate-test-utils": "1.3.2",
"tailwindcss": "^3.4.17",
"tailwindcss": "^3.4.11",
"ts-jest": "^29.2.5",
"tsup": "^8.3.5",
"turbo": "^2.3.3",
"tsup": "^8.2.4",
"turbo": "^2.1.2",
"turbowatch": "2.29.4",
"typescript": "5.7.2"
"typescript": "5.6.2"
},
"packageManager": "[email protected]",
"engines": {
"node": ">=18.12.0",
"npm": "please-use-pnpm",
"yarn": "please-use-pnpm",
"pnpm": ">=9.15.0"
"pnpm": ">=9.0.0",
"yarn": "please-use-pnpm"
},
"pnpm": {
"peerDependencyRules": {
"allowAny": [
"eslint",
"react",
"react-dom"
]
}
},
"packageManager": "[email protected]+sha512.76e2379760a4328ec4415815bcd6628dee727af3779aaa4c914e3944156c4299921a89f976381ee107d41f12cfa4b66681ca9c718f0668fa0831ed4c6d8ba56c"
"peerDependencyRules": {
"allowAny": [
"eslint"
]
},
"overrides": {
"@types/react": "18.3.12",
"@types/react-dom": "18.3.1",
"react": "18.3.1",
"react-dom": "18.3.1"
}
}
}
4 changes: 3 additions & 1 deletion packages/yjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,9 @@
"slate-dom": ">=0.111.0",
"slate-history": ">=0.93.0",
"slate-hyperscript": ">=0.66.0",
"slate-react": ">=0.111.0"
"slate-react": ">=0.111.0",
"yjs": ">=13.6.21",
"y-protocols": ">=1.0.6"
},
"publishConfig": {
"access": "public"
Expand Down
Loading

0 comments on commit c1c6824

Please sign in to comment.