Skip to content

Make sure Git uses \n on all platforms as a new line. Then we don't need to call --to-posix-eol #77

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* text=auto eol=lf
5 changes: 2 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
- uses: actions/checkout@v3
- run: npm ci
- run: cargo install blockset
- run: npm run blockset-prepare-win
- run: npm run blockset-prepare
- run: npm test

deno:
Expand All @@ -60,7 +60,6 @@ jobs:
deno-version: v1.x
- run: cargo install blockset
- run: npm run blockset-prepare
# - run: deno run --quiet --allow-read --allow-env --allow-net --allow-hrtime ./test.mjs
- run: deno run --quiet --allow-read --allow-write --allow-net --allow-hrtime ./test.mjs

bun:
Expand Down Expand Up @@ -111,4 +110,4 @@ jobs:
name: blockset-js.tgz
- run: npm install -g blockset-js-${{ env.VERSION }}.tgz
- run: npx blockset-js awt9x8564999k276wap2e5b7n10575ffy946kencva4ve _out.txt 410f5a49.blockset-js-test.pages.dev
- run: less ./_out.txt
- run: less ./_out.txt
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
"scripts": {
"tsc": "tsc",
"blockset-prepare": "blockset add ./examples/list.txt && blockset add ./examples/list2.txt && blockset add ./examples/repeat.txt",
"blockset-prepare-win": "blockset add ./examples/list.txt --to-posix-eol && blockset add ./examples/list2.txt --to-posix-eol && blockset add ./examples/repeat.txt --to-posix-eol",
"test": "tsc & node --trace-uncaught test.mjs"
},
"repository": {
Expand Down