Skip to content

Commit

Permalink
feat(typescript): fix yui jar file
Browse files Browse the repository at this point in the history
  • Loading branch information
srod committed Dec 19, 2022
1 parent bd2fe18 commit a074b84
Show file tree
Hide file tree
Showing 22 changed files with 93 additions and 46 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
run: pnpm install --no-frozen-lockfile

- name: Run tests
run: pnpm build && pnpm coverage
run: pnpm coverage
env:
CI: true

Expand Down
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ tag-version-prefix=""
strict-peer-dependencies = false
auto-install-peers = true
lockfile = true
enable-pre-post-scripts = true
19 changes: 10 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,16 @@
"packageManager": "pnpm@7.18.0",
"scripts": {
"build": "lerna run build",
"clean": "pnpm clean:build; pnpm clean:packages",
"clean:build": "pnpm dlx rimraf packages/*/dist docs/.next",
"clean:packages": "pnpm lerna clean -y",
"clean:test": "pnpm dlx rimraf tests/tmp/*.{js,js.map,css,html}",
"coverage": "vitest run --coverage",
"eslint": "eslint --ignore-path .gitignore packages",
"clean": "npm clean:build; npm clean:packages",
"clean:build": "npm run rimraf packages/*/dist docs/.next",
"clean:packages": "npm lerna clean -y",
"clean:test": "npm run rimraf tests/tmp/*.{js,js.map,css,html}",
"coverage": "npm run build; npm run eslint; vitest run --coverage",
"eslint": "eslint",
"lerna": "lerna",
"lint": "pnpm eslint || true",
"postcoverage": "pnpm clean:test",
"pretest": "pnpm build; pnpm eslint",
"lint": "npm eslint || true",
"postcoverage": "npm clean:test",
"pretest": "npm build; npm eslint",
"publish-latest": "NPM_CONFIG_OTP=xxx pnpm lerna publish --tag-version-prefix ''",
"publish-next": "NPM_CONFIG_OTP=xxx pnpm lerna publish --tag-version-prefix '' --preid beta --npm-tag next",
"prettier-project": "prettier --write './packages/**/{bin,src,__tests__}/**/*.js'",
Expand Down Expand Up @@ -57,6 +57,7 @@
"@node-minify/yui": "workspace:*",
"@types/node": "18.11.10",
"@vitest/coverage-c8": "0.25.3",
"copyfiles": "2.4.1",
"eslint": "8.29.0",
"eslint-config-prettier": "8.5.0",
"eslint-plugin-prettier": "4.2.1",
Expand Down
4 changes: 2 additions & 2 deletions packages/babel-minify/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@
},
"scripts": {
"clean": "pnpm dlx rimraf dist",
"build": "npm run clean && tsup src/index.ts --format cjs,esm --dts --clean --sourcemap",
"prepublishOnly": "npm run build"
"build": "pnpm clean && tsup src/index.ts --format cjs,esm --dts --clean --sourcemap",
"prepublishOnly": "pnpm build"
},
"dependencies": {
"@node-minify/utils": "workspace:*",
Expand Down
4 changes: 2 additions & 2 deletions packages/clean-css/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@
},
"scripts": {
"clean": "pnpm dlx rimraf dist",
"build": "npm run clean && tsup src/index.ts --format cjs,esm --dts --clean --sourcemap",
"prepublishOnly": "npm run build"
"build": "pnpm clean && tsup src/index.ts --format cjs,esm --dts --clean --sourcemap",
"prepublishOnly": "pnpm build"
},
"dependencies": {
"@node-minify/utils": "workspace:*",
Expand Down
4 changes: 2 additions & 2 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@
},
"scripts": {
"clean": "pnpm dlx rimraf dist",
"build": "npm run clean && tsup src/index.ts --format cjs,esm --dts --sourcemap && tsup src/bin/cli.ts --format esm --dts --sourcemap",
"prepublishOnly": "npm run build"
"build": "pnpm clean && tsup src/index.ts --format cjs,esm --dts --sourcemap && tsup src/bin/cli.ts --format esm --dts --sourcemap",
"prepublishOnly": "pnpm build"
},
"dependencies": {
"@node-minify/core": "workspace:*",
Expand Down
4 changes: 2 additions & 2 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@
},
"scripts": {
"clean": "pnpm dlx rimraf dist",
"build": "npm run clean && tsup src/index.ts --format cjs,esm --dts --clean --sourcemap",
"prepublishOnly": "npm run build"
"build": "pnpm clean && tsup src/index.ts --format cjs,esm --dts --clean --sourcemap",
"prepublishOnly": "pnpm build"
},
"dependencies": {
"@node-minify/utils": "workspace:*",
Expand Down
4 changes: 2 additions & 2 deletions packages/crass/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@
},
"scripts": {
"clean": "pnpm dlx rimraf dist",
"build": "npm run clean && tsup src/index.ts --format cjs,esm --dts --clean --sourcemap",
"prepublishOnly": "npm run build"
"build": "pnpm clean && tsup src/index.ts --format cjs,esm --dts --clean --sourcemap",
"prepublishOnly": "pnpm build"
},
"dependencies": {
"@node-minify/utils": "workspace:*",
Expand Down
4 changes: 2 additions & 2 deletions packages/cssnano/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@
},
"scripts": {
"clean": "pnpm dlx rimraf dist",
"build": "npm run clean && tsup src/index.ts --format cjs,esm --dts --clean --sourcemap",
"prepublishOnly": "npm run build"
"build": "pnpm clean && tsup src/index.ts --format cjs,esm --dts --clean --sourcemap",
"prepublishOnly": "pnpm build"
},
"dependencies": {
"@node-minify/utils": "workspace:*",
Expand Down
4 changes: 2 additions & 2 deletions packages/csso/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@
},
"scripts": {
"clean": "pnpm dlx rimraf dist",
"build": "npm run clean && tsup src/index.ts --format cjs,esm --dts --clean --sourcemap",
"prepublishOnly": "npm run build"
"build": "pnpm clean && tsup src/index.ts --format cjs,esm --dts --clean --sourcemap",
"prepublishOnly": "pnpm build"
},
"dependencies": {
"@node-minify/utils": "workspace:*",
Expand Down
4 changes: 2 additions & 2 deletions packages/google-closure-compiler/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@
},
"scripts": {
"clean": "pnpm dlx rimraf dist",
"build": "npm run clean && tsup src/index.ts --format cjs,esm --dts --clean --sourcemap",
"prepublishOnly": "npm run build"
"build": "pnpm clean && tsup src/index.ts --format cjs,esm --dts --clean --sourcemap",
"prepublishOnly": "pnpm build"
},
"dependencies": {
"@node-minify/run": "workspace:*",
Expand Down
4 changes: 2 additions & 2 deletions packages/html-minifier/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@
},
"scripts": {
"clean": "pnpm dlx rimraf dist",
"build": "npm run clean && tsup src/index.ts --format cjs,esm --dts --clean --sourcemap",
"prepublishOnly": "npm run build"
"build": "pnpm clean && tsup src/index.ts --format cjs,esm --dts --clean --sourcemap",
"prepublishOnly": "pnpm build"
},
"dependencies": {
"@node-minify/utils": "workspace:*",
Expand Down
4 changes: 2 additions & 2 deletions packages/jsonminify/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@
},
"scripts": {
"clean": "pnpm dlx rimraf dist",
"build": "npm run clean && tsup src/index.ts --format cjs,esm --dts --clean --sourcemap",
"prepublishOnly": "npm run build"
"build": "pnpm clean && tsup src/index.ts --format cjs,esm --dts --clean --sourcemap",
"prepublishOnly": "pnpm build"
},
"dependencies": {
"@node-minify/utils": "workspace:*",
Expand Down
4 changes: 2 additions & 2 deletions packages/no-compress/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@
},
"scripts": {
"clean": "pnpm dlx rimraf dist",
"build": "npm run clean && tsup src/index.ts --format cjs,esm --dts --clean --sourcemap",
"prepublishOnly": "npm run build"
"build": "pnpm clean && tsup src/index.ts --format cjs,esm --dts --clean --sourcemap",
"prepublishOnly": "pnpm build"
},
"dependencies": {
"@node-minify/utils": "workspace:*"
Expand Down
4 changes: 2 additions & 2 deletions packages/run/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@
},
"scripts": {
"clean": "pnpm dlx rimraf dist",
"build": "npm run clean && tsup src/index.ts --format cjs,esm --dts --clean --sourcemap",
"prepublishOnly": "npm run build"
"build": "pnpm clean && tsup src/index.ts --format cjs,esm --dts --clean --sourcemap",
"prepublishOnly": "pnpm build"
},
"devDependencies": {
"@node-minify/types": "workspace:*"
Expand Down
4 changes: 2 additions & 2 deletions packages/sqwish/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@
},
"scripts": {
"clean": "pnpm dlx rimraf dist",
"build": "npm run clean && tsup src/index.ts --format cjs,esm --dts --clean --sourcemap",
"prepublishOnly": "npm run build"
"build": "pnpm clean && tsup src/index.ts --format cjs,esm --dts --clean --sourcemap",
"prepublishOnly": "pnpm build"
},
"dependencies": {
"@node-minify/utils": "workspace:*",
Expand Down
4 changes: 2 additions & 2 deletions packages/terser/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@
},
"scripts": {
"clean": "pnpm dlx rimraf dist",
"build": "npm run clean && tsup src/index.ts --format cjs,esm --dts --clean --sourcemap",
"prepublishOnly": "npm run build"
"build": "pnpm clean && tsup src/index.ts --format cjs,esm --dts --clean --sourcemap",
"prepublishOnly": "pnpm build"
},
"dependencies": {
"@node-minify/utils": "workspace:*",
Expand Down
4 changes: 2 additions & 2 deletions packages/uglify-es/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@
},
"scripts": {
"clean": "pnpm dlx rimraf dist",
"build": "npm run clean && tsup src/index.ts --format cjs,esm --dts --clean --sourcemap",
"prepublishOnly": "npm run build"
"build": "pnpm clean && tsup src/index.ts --format cjs,esm --dts --clean --sourcemap",
"prepublishOnly": "pnpm build"
},
"dependencies": {
"@node-minify/utils": "workspace:*",
Expand Down
4 changes: 2 additions & 2 deletions packages/uglify-js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@
},
"scripts": {
"clean": "pnpm dlx rimraf dist",
"build": "npm run clean && tsup src/index.ts --format cjs,esm --dts --clean --sourcemap",
"prepublishOnly": "npm run build"
"build": "pnpm clean && tsup src/index.ts --format cjs,esm --dts --clean --sourcemap",
"prepublishOnly": "pnpm build"
},
"dependencies": {
"@node-minify/utils": "workspace:*",
Expand Down
4 changes: 2 additions & 2 deletions packages/utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@
},
"scripts": {
"clean": "pnpm dlx rimraf dist",
"build": "npm run clean && tsup src/index.ts --format cjs,esm --dts --clean --sourcemap",
"prepublishOnly": "npm run build"
"build": "pnpm clean && tsup src/index.ts --format cjs,esm --dts --clean --sourcemap",
"prepublishOnly": "pnpm build"
},
"dependencies": {
"gzip-size": "6.0.0"
Expand Down
5 changes: 3 additions & 2 deletions packages/yui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,9 @@
},
"scripts": {
"clean": "pnpm dlx rimraf dist",
"build": "npm run clean && tsup src/index.ts --format cjs,esm --dts --clean --sourcemap",
"prepublishOnly": "npm run build"
"build": "pnpm clean && tsup src/index.ts --format cjs,esm --dts --clean --sourcemap",
"postbuild": "pnpm dlx copyfiles -u 1 src/binaries/*.jar dist/",
"prepublishOnly": "pnpm build"
},
"dependencies": {
"@node-minify/run": "workspace:*",
Expand Down
44 changes: 44 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a074b84

Please sign in to comment.