Skip to content

Commit

Permalink
fix/deps (#39)
Browse files Browse the repository at this point in the history
* fix: dependencies

* fix: mark dev dependencies

* fix: export as esm format

* fix: pretteir build config

* fix: build stylelint config

* chore: changeset
  • Loading branch information
sushichan044 authored Apr 22, 2024
1 parent accdecb commit ee21287
Show file tree
Hide file tree
Showing 10 changed files with 162 additions and 274 deletions.
7 changes: 7 additions & 0 deletions .changeset/forty-seahorses-accept.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"@virtual-live-lab/stylelint-config": minor
"@virtual-live-lab/prettier-config": minor
"@virtual-live-lab/eslint-config": minor
---

change build format
38 changes: 19 additions & 19 deletions packages/eslint-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,57 +2,48 @@
"name": "@virtual-live-lab/eslint-config",
"version": "1.0.4",
"description": "ESLint configuration for Virtual Live Lab",
"main": "./dist/index.js",
"main": "./dist/index.mjs",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"exports": {
".": {
"default": "./dist/index.js",
"import": "./dist/index.mjs",
"types": "./dist/index.d.ts"
},
"./js": {
"default": "./dist/js.js",
"import": "./dist/js.mjs",
"types": "./dist/js.d.ts"
},
"./ts": {
"default": "./dist/ts.js",
"import": "./dist/ts.mjs",
"types": "./dist/ts.d.ts"
},
"./astro": {
"default": "./dist/astro.js",
"import": "./dist/astro.mjs",
"types": "./dist/astro.d.ts"
},
"./react": {
"default": "./dist/react.js",
"import": "./dist/react.mjs",
"types": "./dist/react.d.ts"
},
"./addons/*": {
"default": "./dist/addons/*.js",
"import": "./dist/addons/*.mjs",
"types": "./dist/addons/*.d.ts"
}
},
"files": [
"dist"
],
"scripts": {
"build": "tsup"
"build": "tsup-node"
},
"peerDependencies": {
"eslint": "^8.57.0"
},
"dependencies": {
"eslint": "^8.57.0"
},
"devDependencies": {
"@double-great/stylelint-a11y": "^3.0.2",
"@eslint/eslintrc": "^3.0.2",
"@eslint/js": "^8.57.0",
"@types/eslint": "^8.56.7",
"@types/eslint-config-prettier": "^6.11.3",
"@types/eslint__eslintrc": "^2.1.1",
"@types/eslint__js": "^8",
"@types/node": "^20.12.7",
"@typescript-eslint/utils": "^7.7.0",
"@virtual-live-lab/tsconfig": "workspace:^",
"eslint": "^8.57.0",
"eslint-config-flat-gitignore": "^0.1.5",
"eslint-config-prettier": "^9.1.0",
Expand All @@ -64,9 +55,18 @@
"eslint-plugin-tailwindcss": "^3.15.1",
"globals": "^14.0.0",
"pkg-dir": "^8.0.0",
"tsup": "^8.0.2",
"typescript-eslint": "^7.5.0"
},
"devDependencies": {
"@types/eslint": "^8.56.7",
"@types/eslint-config-prettier": "^6.11.3",
"@types/eslint__eslintrc": "^2.1.1",
"@types/eslint__js": "^8",
"@typescript-eslint/utils": "^7.7.0",
"@types/node": "^20.12.7",
"@virtual-live-lab/tsconfig": "workspace:^",
"tsup": "^8.0.2"
},
"license": "MIT",
"publishConfig": {
"access": "public",
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-config/tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default defineConfig({
clean: true, // build前にディレクトリ内を削除するか
dts: true,
entry: ["./src/*.ts", "./src/addons/*.ts"], // バンドルするファイルを指定
format: ["cjs"], // 出力する形式を指定
format: ["esm"], // 出力する形式を指定
minify: process.env.NODE_ENV === "production",
outDir: "dist",
sourcemap: false, // soucemapを出力するか
Expand Down
8 changes: 3 additions & 5 deletions packages/prettier-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,16 @@
"name": "@virtual-live-lab/prettier-config",
"version": "1.0.3",
"description": "Prettier configuration for Virtual Live Lab",
"main": "./dist/index.js",
"main": "./dist/index.mjs",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"exports": {
".": {
"import": "./dist/index.js",
"require": "./dist/index.mjs",
"import": "./dist/index.mjs",
"types": "./dist/index.d.ts"
},
"./astro": {
"import": "./dist/astro.js",
"require": "./dist/astro.mjs",
"import": "./dist/astro.mjs",
"types": "./dist/astro.d.ts"
}
},
Expand Down
File renamed without changes.
File renamed without changes.
5 changes: 3 additions & 2 deletions packages/prettier-config/tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ import { defineConfig } from "tsup"
export default defineConfig({
clean: true, // build前にディレクトリ内を削除するか
dts: true,
entry: ["./index.ts", "./astro.ts"], // バンドルするファイルを指定
format: ["cjs", "esm"], // 出力する形式を指定
entry: ["./src/*.ts"], // バンドルするファイルを指定
format: ["esm"], // 出力する形式を指定
minify: process.env.NODE_ENV === "production",
outDir: "dist",
sourcemap: false, // soucemapを出力するか
splitting: false, // バンドルしないで分割するか
treeshake: true,
Expand Down
5 changes: 1 addition & 4 deletions packages/stylelint-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,19 @@
"name": "@virtual-live-lab/stylelint-config",
"version": "1.0.5",
"description": "Stylelint configuration for Virtual Live Lab",
"main": "./dist/index.js",
"main": "./dist/index.mjs",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"exports": {
".": {
"require": "./dist/index.js",
"import": "./dist/index.mjs",
"types": "./dist/index.d.ts"
},
"./scss": {
"require": "./dist/scss.js",
"import": "./dist/scss.mjs",
"types": "./dist/scss.d.ts"
},
"./astro": {
"require": "./dist/astro.js",
"import": "./dist/astro.mjs",
"types": "./dist/astro.d.ts"
}
Expand Down
2 changes: 1 addition & 1 deletion packages/stylelint-config/tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default defineConfig({
clean: true, // build前にディレクトリ内を削除するか
dts: true,
entry: ["./src/*.ts"], // バンドルするファイルを指定
format: ["cjs", "esm"], // 出力する形式を指定
format: ["esm"], // 出力する形式を指定
minify: process.env.NODE_ENV === "production",
outDir: "dist",
sourcemap: false, // soucemapを出力するか
Expand Down
Loading

0 comments on commit ee21287

Please sign in to comment.