Skip to content

Commit 2caac36

Browse files
authored
refactor(cli): correct the line endings before publishing (#1397)
* refactor: let's correct the line endings before publishing if this doesn't work, we could try it on postinstall * build: regenerated yarn.lock file
1 parent 712c40e commit 2caac36

File tree

2 files changed

+772
-606
lines changed

2 files changed

+772
-606
lines changed

packages/cli/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
},
2525
"devDependencies": {
2626
"@pattern-lab/starterkit-mustache-base": "3.0.3",
27+
"dos2unix-cli": "^1.0.1",
2728
"eslint": "4.18.2",
2829
"eslint-config-prettier": "2.9.0",
2930
"eslint-plugin-prettier": "2.6.0",
@@ -46,7 +47,8 @@
4647
],
4748
"scripts": {
4849
"lint": "eslint ./{bin,test}",
49-
"test:separate": "tap ./test/*.test.js --reporter spec --timeout=120"
50+
"test:separate": "tap ./test/*.test.js --reporter spec --timeout=120",
51+
"prepublish": "npx dos2unix-cli bin/patternlab.js"
5052
},
5153
"repository": "https://github.com/pattern-lab/patternlab-node/tree/master/packages/cli",
5254
"bugs": "https://github.com/pattern-lab/patternlab-node/issues",

0 commit comments

Comments
 (0)