diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f7b10d37..b13cd915 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -22,7 +22,9 @@ jobs: with: node-version: 'lts/*' cache: yarn - - run: yarn && yarn build + - run: | + yarn + yarn build - uses: actions/upload-artifact@2244c8200304ec9588bf9399eac622d9fadc28c4 with: name: animated-tailwindcss @@ -50,15 +52,14 @@ jobs: - run: | set -e yarn - git add . - yarn lint --all --no-stash + yarn lint:all [ -z "$(git status --porcelain -- ':!.yarn')" ] yarn package-check --cwd dist analyze: permissions: - actions: read # for github/codeql-action/init to get workflow details - security-events: write # for github/codeql-action/analyze to upload SARIF results + actions: read + security-events: write runs-on: ubuntu-latest needs: lint diff --git a/.pnp.cjs b/.pnp.cjs index f762ba54..c49d7977 100644 --- a/.pnp.cjs +++ b/.pnp.cjs @@ -66,7 +66,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { ["lint-staged", "patch:lint-staged@npm%3A12.3.1#.yarn/patches/lint-staged-npm-12.3.1-e2cd0c0b88::version=12.3.1&hash=bbd614&locator=root-workspace-0b6124%40workspace%3A."], ["markdown-it-container", "npm:3.0.0"], ["markdown-it-deflist", "npm:2.1.0"], - ["npm-run-all", "npm:4.1.5"], ["postcss", "npm:8.4.6"], ["postcss-flexbugs-fixes", "virtual:dc3fc578bfa5e06182a4d2be39ede0bc5b74940b1ffe0d70c26892ab140a4699787750fba175dc306292e80b4aa2c8c5f68c2a821e69b2c37e360c0dff36ff66#npm:5.0.2"], ["postcss-preset-env", "virtual:dc3fc578bfa5e06182a4d2be39ede0bc5b74940b1ffe0d70c26892ab140a4699787750fba175dc306292e80b4aa2c8c5f68c2a821e69b2c37e360c0dff36ff66#npm:7.3.1"], @@ -6766,15 +6765,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "linkType": "HARD", }] ]], - ["memorystream", [ - ["npm:0.3.1", { - "packageLocation": "./.yarn/cache/memorystream-npm-0.3.1-ae973f1d16-f18b42440d.zip/node_modules/memorystream/", - "packageDependencies": [ - ["memorystream", "npm:0.3.1"] - ], - "linkType": "HARD", - }] - ]], ["meow", [ ["npm:8.1.2", { "packageLocation": "./.yarn/cache/meow-npm-8.1.2-bcfe48d4f3-bc23bf1b44.zip/node_modules/meow/", @@ -7248,24 +7238,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "linkType": "HARD", }] ]], - ["npm-run-all", [ - ["npm:4.1.5", { - "packageLocation": "./.yarn/cache/npm-run-all-npm-4.1.5-3281f1c563-373b72c6a3.zip/node_modules/npm-run-all/", - "packageDependencies": [ - ["npm-run-all", "npm:4.1.5"], - ["ansi-styles", "npm:3.2.1"], - ["chalk", "npm:2.4.2"], - ["cross-spawn", "npm:6.0.5"], - ["memorystream", "npm:0.3.1"], - ["minimatch", "npm:3.0.5"], - ["pidtree", "npm:0.3.1"], - ["read-pkg", "npm:3.0.0"], - ["shell-quote", "npm:1.7.3"], - ["string.prototype.padend", "npm:3.1.3"] - ], - "linkType": "HARD", - }] - ]], ["npm-run-path", [ ["npm:2.0.2", { "packageLocation": "./.yarn/cache/npm-run-path-npm-2.0.2-96c8b48857-acd5ad8164.zip/node_modules/npm-run-path/", @@ -7777,15 +7749,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "linkType": "HARD", }] ]], - ["pidtree", [ - ["npm:0.3.1", { - "packageLocation": "./.yarn/cache/pidtree-npm-0.3.1-70dda1cc59-eb49025099.zip/node_modules/pidtree/", - "packageDependencies": [ - ["pidtree", "npm:0.3.1"] - ], - "linkType": "HARD", - }] - ]], ["pify", [ ["npm:2.3.0", { "packageLocation": "./.yarn/cache/pify-npm-2.3.0-8b63310934-9503aaeaf4.zip/node_modules/pify/", @@ -9412,7 +9375,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { ["lint-staged", "patch:lint-staged@npm%3A12.3.1#.yarn/patches/lint-staged-npm-12.3.1-e2cd0c0b88::version=12.3.1&hash=bbd614&locator=root-workspace-0b6124%40workspace%3A."], ["markdown-it-container", "npm:3.0.0"], ["markdown-it-deflist", "npm:2.1.0"], - ["npm-run-all", "npm:4.1.5"], ["postcss", "npm:8.4.6"], ["postcss-flexbugs-fixes", "virtual:dc3fc578bfa5e06182a4d2be39ede0bc5b74940b1ffe0d70c26892ab140a4699787750fba175dc306292e80b4aa2c8c5f68c2a821e69b2c37e360c0dff36ff66#npm:5.0.2"], ["postcss-preset-env", "virtual:dc3fc578bfa5e06182a4d2be39ede0bc5b74940b1ffe0d70c26892ab140a4699787750fba175dc306292e80b4aa2c8c5f68c2a821e69b2c37e360c0dff36ff66#npm:7.3.1"], @@ -9626,15 +9588,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "linkType": "HARD", }] ]], - ["shell-quote", [ - ["npm:1.7.3", { - "packageLocation": "./.yarn/cache/shell-quote-npm-1.7.3-76a78a6d77-aca58e73a3.zip/node_modules/shell-quote/", - "packageDependencies": [ - ["shell-quote", "npm:1.7.3"] - ], - "linkType": "HARD", - }] - ]], ["shelljs", [ ["npm:0.8.5", { "packageLocation": "./.yarn/cache/shelljs-npm-0.8.5-44be43f84a-7babc46f73.zip/node_modules/shelljs/", @@ -9955,18 +9908,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "linkType": "HARD", }] ]], - ["string.prototype.padend", [ - ["npm:3.1.3", { - "packageLocation": "./.yarn/cache/string.prototype.padend-npm-3.1.3-2f153896cd-ef9ee0542c.zip/node_modules/string.prototype.padend/", - "packageDependencies": [ - ["string.prototype.padend", "npm:3.1.3"], - ["call-bind", "npm:1.0.2"], - ["define-properties", "npm:1.1.3"], - ["es-abstract", "npm:1.19.1"] - ], - "linkType": "HARD", - }] - ]], ["string.prototype.trimend", [ ["npm:1.0.4", { "packageLocation": "./.yarn/cache/string.prototype.trimend-npm-1.0.4-a656b8fe24-17e5aa45c3.zip/node_modules/string.prototype.trimend/", diff --git a/.yarn/cache/memorystream-npm-0.3.1-ae973f1d16-f18b42440d.zip b/.yarn/cache/memorystream-npm-0.3.1-ae973f1d16-f18b42440d.zip deleted file mode 100644 index 30ee3e0f..00000000 Binary files a/.yarn/cache/memorystream-npm-0.3.1-ae973f1d16-f18b42440d.zip and /dev/null differ diff --git a/.yarn/cache/npm-run-all-npm-4.1.5-3281f1c563-373b72c6a3.zip b/.yarn/cache/npm-run-all-npm-4.1.5-3281f1c563-373b72c6a3.zip deleted file mode 100644 index 4531aaf1..00000000 Binary files a/.yarn/cache/npm-run-all-npm-4.1.5-3281f1c563-373b72c6a3.zip and /dev/null differ diff --git a/.yarn/cache/pidtree-npm-0.3.1-70dda1cc59-eb49025099.zip b/.yarn/cache/pidtree-npm-0.3.1-70dda1cc59-eb49025099.zip deleted file mode 100644 index ffde3add..00000000 Binary files a/.yarn/cache/pidtree-npm-0.3.1-70dda1cc59-eb49025099.zip and /dev/null differ diff --git a/.yarn/cache/shell-quote-npm-1.7.3-76a78a6d77-aca58e73a3.zip b/.yarn/cache/shell-quote-npm-1.7.3-76a78a6d77-aca58e73a3.zip deleted file mode 100644 index ab19bd91..00000000 Binary files a/.yarn/cache/shell-quote-npm-1.7.3-76a78a6d77-aca58e73a3.zip and /dev/null differ diff --git a/.yarn/cache/string.prototype.padend-npm-3.1.3-2f153896cd-ef9ee0542c.zip b/.yarn/cache/string.prototype.padend-npm-3.1.3-2f153896cd-ef9ee0542c.zip deleted file mode 100644 index d9f3e32d..00000000 Binary files a/.yarn/cache/string.prototype.padend-npm-3.1.3-2f153896cd-ef9ee0542c.zip and /dev/null differ diff --git a/package-dist.json b/package-dist.json index 46d5ad2c..1108e47c 100644 --- a/package-dist.json +++ b/package-dist.json @@ -5,9 +5,6 @@ "description": "A configuration to use Animate.css with Tailwind CSS", "license": "MIT", "author": "Divyansh Singh (https://github.com/brc-dd)", - "contributors": [ - "Akash Tureha <2020kucp1138@iiitkota.ac.in> (https://github.com/MrMischievousX)" - ], "homepage": "https://ikcb.org/animated-tailwindcss", "repository": "github:ikcb/animated-tailwindcss", "bugs": { @@ -20,6 +17,7 @@ "files": [ "index.d.ts" ], + "sideEffects": false, "types": "index.d.ts", "dependencies": { "csstype": "^3" diff --git a/package.json b/package.json index 4506ec80..cb900d5d 100644 --- a/package.json +++ b/package.json @@ -1,14 +1,15 @@ { "private": true, "scripts": { - "build": "run-s clean 'build:*'", + "build": "yarn clean && yarn build:base && yarn build:docs", "build:base": "ttsc && ts-node --skip-project build.ts", "build:docs": "vitepress build docs && shx mv docs/.vitepress/dist docs/dist/animated-tailwindcss", "clean": "shx rm -rf dist docs/dist && shx mkdir docs/dist", "dev:docs": "vitepress dev docs", "postinstall": "is-ci || (husky install && sdks vscode && yarn build)", "lint": "lint-staged --allow-empty -p false", - "release": "yarn build && release-it", + "lint:all": "git add . && yarn lint --all --no-stash", + "release": "yarn lint:all && yarn build && release-it", "serve:docs": "serve docs/dist" }, "resolutions": { @@ -48,7 +49,6 @@ "lint-staged": "12.3.1", "markdown-it-container": "latest", "markdown-it-deflist": "latest", - "npm-run-all": "latest", "postcss": "latest", "postcss-flexbugs-fixes": "latest", "postcss-preset-env": "latest", diff --git a/yarn.lock b/yarn.lock index 67187ada..f06caf6e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2113,7 +2113,7 @@ __metadata: languageName: node linkType: hard -"chalk@npm:2.4.2, chalk@npm:^2.0.0, chalk@npm:^2.3.0, chalk@npm:^2.4.1": +"chalk@npm:2.4.2, chalk@npm:^2.0.0, chalk@npm:^2.3.0": version: 2.4.2 resolution: "chalk@npm:2.4.2" dependencies: @@ -2770,7 +2770,7 @@ __metadata: languageName: node linkType: hard -"cross-spawn@npm:^6.0.0, cross-spawn@npm:^6.0.5": +"cross-spawn@npm:^6.0.0": version: 6.0.5 resolution: "cross-spawn@npm:6.0.5" dependencies: @@ -5619,13 +5619,6 @@ __metadata: languageName: node linkType: hard -"memorystream@npm:^0.3.1": - version: 0.3.1 - resolution: "memorystream@npm:0.3.1" - checksum: f18b42440d24d09516d01466c06adf797df7873f0d40aa7db02e5fb9ed83074e5e65412d0720901d7069363465f82dc4f8bcb44f0cde271567a61426ce6ca2e9 - languageName: node - linkType: hard - "meow@npm:^8.0.0": version: 8.1.2 resolution: "meow@npm:8.1.2" @@ -6050,27 +6043,6 @@ __metadata: languageName: node linkType: hard -"npm-run-all@npm:latest": - version: 4.1.5 - resolution: "npm-run-all@npm:4.1.5" - dependencies: - ansi-styles: ^3.2.1 - chalk: ^2.4.1 - cross-spawn: ^6.0.5 - memorystream: ^0.3.1 - minimatch: ^3.0.4 - pidtree: ^0.3.0 - read-pkg: ^3.0.0 - shell-quote: ^1.6.1 - string.prototype.padend: ^3.0.0 - bin: - npm-run-all: bin/npm-run-all/index.js - run-p: bin/run-p/index.js - run-s: bin/run-s/index.js - checksum: 373b72c6a36564da13c1642c1fd9bb4dcc756bce7a3648f883772f02661095319820834ff813762d2fee403e9b40c1cd27c8685807c107440f10eb19c006d4a0 - languageName: node - linkType: hard - "npm-run-path@npm:^2.0.0": version: 2.0.2 resolution: "npm-run-path@npm:2.0.2" @@ -6531,15 +6503,6 @@ __metadata: languageName: node linkType: hard -"pidtree@npm:^0.3.0": - version: 0.3.1 - resolution: "pidtree@npm:0.3.1" - bin: - pidtree: bin/pidtree.js - checksum: eb49025099f1af89a4696f7673351421f13420f3397b963c901fe23a1c9c2ff50f4750321970d4472c0ffbb065e4a6c3c27f75e226cc62284b19e21d32ce7012 - languageName: node - linkType: hard - "pify@npm:^2.3.0": version: 2.3.0 resolution: "pify@npm:2.3.0" @@ -7697,7 +7660,6 @@ __metadata: lint-staged: 12.3.1 markdown-it-container: latest markdown-it-deflist: latest - npm-run-all: latest postcss: latest postcss-flexbugs-fixes: latest postcss-preset-env: latest @@ -7905,13 +7867,6 @@ __metadata: languageName: node linkType: hard -"shell-quote@npm:^1.6.1": - version: 1.7.3 - resolution: "shell-quote@npm:1.7.3" - checksum: aca58e73a3a5d933d02e0bdddedc53ee14f7c2ec264f97ac915b9d4482d077a38e422aa664631d60a672cd3cdb4054eb2e6c0303f54882453dacb6483e482d34 - languageName: node - linkType: hard - "shelljs@npm:0.8.5, shelljs@npm:^0.8.5": version: 0.8.5 resolution: "shelljs@npm:0.8.5" @@ -8195,17 +8150,6 @@ __metadata: languageName: node linkType: hard -"string.prototype.padend@npm:^3.0.0": - version: 3.1.3 - resolution: "string.prototype.padend@npm:3.1.3" - dependencies: - call-bind: ^1.0.2 - define-properties: ^1.1.3 - es-abstract: ^1.19.1 - checksum: ef9ee0542c17975629bc6d21497e8faaa142d873e9f07fb65de2a955df402a1eac45cbed375045a759501e9d4ef80e589e11f0e12103c20df0770e47f6b59bc7 - languageName: node - linkType: hard - "string.prototype.trimend@npm:^1.0.4": version: 1.0.4 resolution: "string.prototype.trimend@npm:1.0.4"