Skip to content

Commit

Permalink
chore: bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
tianyingchun committed Jun 19, 2024
1 parent 142f38e commit 1e2e3ac
Show file tree
Hide file tree
Showing 4 changed files with 118 additions and 113 deletions.
5 changes: 5 additions & 0 deletions .changeset/fluffy-cougars-cover.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@hyperse/eslint-config-hyperse": patch
---

bump version
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,22 +68,22 @@
}
},
"dependencies": {
"@eslint/js": "^9.4.0",
"@eslint/js": "^9.5.0",
"@next/eslint-plugin-next": "^14.2.4",
"app-root-path": "^3.1.0",
"eslint-config-prettier": "^9.1.0",
"eslint-define-config": "^2.1.0",
"eslint-plugin-mdx": "^3.1.5",
"eslint-plugin-prettier": "^5.1.3",
"eslint-plugin-react": "^7.34.2",
"eslint-plugin-react": "^7.34.3",
"eslint-plugin-react-hooks": "^4.6.2",
"eslint-plugin-regexp": "^2.6.0",
"eslint-plugin-simple-import-sort": "^12.1.0",
"eslint-plugin-sonarjs": "^1.0.3",
"eslint-plugin-tailwindcss": "^3.17.3",
"eslint-plugin-vitest": "^0.5.4",
"get-tsconfig": "^4.7.5",
"globals": "^15.4.0",
"globals": "^15.6.0",
"prettier": "^3.3.2",
"tailwindcss": "^3.4.4",
"typescript-eslint": "^8.0.0-alpha.27"
Expand All @@ -93,19 +93,19 @@
"@changesets/cli": "2.27.5",
"@commitlint/cli": "19.3.0",
"@commitlint/config-conventional": "19.2.2",
"@swc/core": "^1.5.29",
"@swc/core": "^1.6.3",
"@types/eslint__js": "^8.42.3",
"@types/node": "20.14.2",
"@types/node": "20.14.5",
"commitizen": "4.3.0",
"cz-conventional-changelog": "3.3.0",
"eslint": "^9.4.0",
"eslint": "^9.5.0",
"husky": "9.0.11",
"lint-staged": "15.2.7",
"npm-run-all": "4.1.5",
"rimraf": "5.0.7",
"swc-unplugin-ts": "1.0.3",
"tsup": "^8.1.0",
"tsx": "^4.15.4",
"tsx": "^4.15.6",
"typescript": "5.4.5",
"vite-tsconfig-paths": "4.3.2",
"vitest": "1.6.0"
Expand Down
18 changes: 9 additions & 9 deletions scripts/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,49 +2,49 @@ import { existsSync } from 'fs';
import { rm } from 'fs/promises';
import { dirname, join } from 'node:path';
import { fileURLToPath } from 'node:url';
import type { Format } from 'tsup';
import type { Format, Options } from 'tsup';
import { build } from 'tsup';

const getDirname = (url: string, subDir = '') => {
return join(dirname(fileURLToPath(url)), subDir);
};

async function buildAll() {
const entries = {
const entries: Record<string, Options & { outputEntry: string }> = {
'src/index.ts': {
format: ['esm'],
entry: 'index',
format: ['esm', 'cjs'],
outputEntry: 'index',
dts: true,
clean: true,
},
'src/main/base.ts': {
format: ['esm'],
entry: 'main/base',
outputEntry: 'main/base',
dts: true,
clean: false,
},
'src/main/nextjs.ts': {
format: ['esm'],
entry: 'main/nextjs',
outputEntry: 'main/nextjs',
dts: true,
clean: false,
},
'src/main/reactjs.ts': {
format: ['esm'],
entry: 'main/reactjs',
outputEntry: 'main/reactjs',
dts: true,
clean: false,
},
};

for (const [key, value] of Object.entries(entries)) {
const { format, entry, dts, clean } = value;
const { format, outputEntry, dts, clean } = value;
await build({
splitting: false,
treeshake: true,
tsconfig: './tsconfig.build.json',
entry: {
[entry]: key,
[outputEntry]: key,
},
dts,
clean,
Expand Down
Loading

0 comments on commit 1e2e3ac

Please sign in to comment.