Skip to content

Commit

Permalink
feat: support mts dts file
Browse files Browse the repository at this point in the history
  • Loading branch information
ntnyq committed Sep 30, 2023
1 parent ef5bb5b commit 81e8898
Show file tree
Hide file tree
Showing 8 changed files with 697 additions and 891 deletions.
7 changes: 7 additions & 0 deletions .changeset/metal-ghosts-care.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'gulp-diffable-html': minor
'gulp-format-html': minor
'@ntnyq/gulp-prettyhtml': minor
---

feat: support mts dts file
26 changes: 13 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "gulp-plugins",
"private": true,
"packageManager": "pnpm@8.6.12",
"packageManager": "pnpm@8.8.0",
"scripts": {
"build": "turbo run --filter=\"./packages/*\" --parallel build",
"clean": "rimraf packages/*/dist packages/*/*.tsbuildinfo",
Expand All @@ -16,23 +16,23 @@
"devDependencies": {
"@changesets/changelog-github": "^0.4.8",
"@changesets/cli": "^2.26.2",
"@ntnyq/eslint-config": "^1.12.2",
"@ntnyq/prettier-config": "^1.12.2",
"@types/vinyl": "^2.0.7",
"@vitest/coverage-v8": "^0.34.1",
"eslint": "^8.47.0",
"@ntnyq/eslint-config": "^1.14.0",
"@ntnyq/prettier-config": "^1.14.0",
"@types/vinyl": "^2.0.8",
"@vitest/coverage-v8": "^0.34.6",
"eslint": "^8.50.0",
"fast-glob": "^3.3.1",
"husky": "8.0.3",
"nano-staged": "^0.8.0",
"pnpm": "^8.6.12",
"prettier": "^3.0.1",
"rimraf": "^5.0.1",
"pnpm": "^8.8.0",
"prettier": "^3.0.3",
"rimraf": "^5.0.5",
"tsup": "^7.2.0",
"tsx": "^3.12.7",
"turbo": "^1.10.12",
"typescript": "^5.1.6",
"tsx": "^3.13.0",
"turbo": "^1.10.14",
"typescript": "^5.2.2",
"vinyl": "^3.0.0",
"vitest": "^0.34.1"
"vitest": "^0.34.6"
},
"prettier": "@ntnyq/prettier-config",
"nano-staged": {
Expand Down
17 changes: 11 additions & 6 deletions packages/gulp-diffable-html/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,17 @@
"directory": "packages/gulp-diffable-html"
},
"exports": {
"./package.json": "./package.json",
".": {
"types": "./dist/index.d.ts",
"require": "./dist/index.js",
"import": "./dist/index.mjs"
},
"./*": "./*"
"import": {
"types": "./dist/index.d.mts",
"default": "./dist/index.mjs"
},
"require": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
}
}
},
"main": "./dist/index.js",
"module": "./dist/index.mjs",
Expand All @@ -45,7 +50,7 @@
},
"dependencies": {
"@ntnyq/logger": "^0.0.3",
"@types/through2": "^2.0.38",
"@types/through2": "^2.0.39",
"diffable-html": "^5.0.0",
"plugin-error": "^2.0.1",
"through2": "^4.0.2"
Expand Down
19 changes: 12 additions & 7 deletions packages/gulp-format-html/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,17 @@
"directory": "packages/gulp-format-html"
},
"exports": {
"./package.json": "./package.json",
".": {
"types": "./dist/index.d.ts",
"require": "./dist/index.js",
"import": "./dist/index.mjs"
},
"./*": "./*"
"import": {
"types": "./dist/index.d.mts",
"default": "./dist/index.mjs"
},
"require": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
}
}
},
"main": "./dist/index.js",
"module": "./dist/index.mjs",
Expand All @@ -44,8 +49,8 @@
},
"dependencies": {
"@ntnyq/logger": "^0.0.3",
"@types/js-beautify": "^1.14.0",
"@types/through2": "^2.0.38",
"@types/js-beautify": "^1.14.1",
"@types/through2": "^2.0.39",
"js-beautify": "^1.14.9",
"plugin-error": "^2.0.1",
"through2": "^4.0.2"
Expand Down
17 changes: 11 additions & 6 deletions packages/gulp-prettyhtml/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,17 @@
"directory": "packages/gulp-prettyhtml"
},
"exports": {
"./package.json": "./package.json",
".": {
"types": "./dist/index.d.ts",
"require": "./dist/index.js",
"import": "./dist/index.mjs"
},
"./*": "./*"
"import": {
"types": "./dist/index.d.mts",
"default": "./dist/index.mjs"
},
"require": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
}
}
},
"main": "./dist/index.js",
"module": "./dist/index.mjs",
Expand All @@ -45,7 +50,7 @@
"dependencies": {
"@ntnyq/logger": "^0.0.3",
"@starptech/prettyhtml": "^0.10.0",
"@types/through2": "^2.0.38",
"@types/through2": "^2.0.39",
"plugin-error": "^2.0.1",
"through2": "^4.0.2"
},
Expand Down
1 change: 1 addition & 0 deletions packages/tsup.config.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import process from 'node:process'
import { defineConfig } from 'tsup'

export default defineConfig({
Expand Down
Loading

0 comments on commit 81e8898

Please sign in to comment.