Skip to content

Commit

Permalink
fix(ci): Switch back ci with unknown version
Browse files Browse the repository at this point in the history
  • Loading branch information
unlight committed Jul 31, 2022
1 parent 416f271 commit 1be413e
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 6 deletions.
18 changes: 17 additions & 1 deletion Taskfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,30 @@
PATH="$PWD/node_modules/.bin":$PATH
set -e

build_pkgroll_dist() {
set -x
rm -rf dist
mkdir dist
# https://esbuild.github.io/api/#target
npx pkgroll --target=es2020
set +x
}

build_pkgroll() {
set -x
rm -rf dist
mkdir dist
# https://esbuild.github.io/api/#target
npx pkgroll --target=es2020
cp src/bin.cjs ./dist
rm dist/cli.mjs
cp -f README.md dist
cat package.json | jq '.main = "./index.cjs"' |
jq '.module = "./index.mjs"' |
jq '.types = "./index.d.ts"' |
jq '.bin = "./cli.cjs"' |
jq '.exports.".".import = "./index.mjs"' |
jq '.exports.".".require = "./index.cjs"' \
>dist/package.json
set +x
}

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"@swc/helpers": "^0.4.3",
"@swc/register": "^0.1.10",
"@types/mocha": "^9.1.1",
"@types/node": "18.6.2",
"@types/node": "18.6.3",
"@typescript-eslint/eslint-plugin": "^5.31.0",
"@typescript-eslint/parser": "^5.31.0",
"c8": "^7.12.0",
Expand Down
5 changes: 1 addition & 4 deletions packages/wireit-package/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "wireit-package",
"version": "1.1.0",
"version": "0.0.0-dev",
"license": "MIT",
"description": "Update wireit scripts across your workspace packages",
"keywords": [
Expand All @@ -9,9 +9,6 @@
"workspaces",
"packages"
],
"files": [
"dist"
],
"bin": "./dist/cli.cjs",
"main": "./dist/index.cjs",
"module": "./dist/index.mjs",
Expand Down

0 comments on commit 1be413e

Please sign in to comment.