fix: fix yarn execs
MODIFY
templates/appveyor.yml
templates/appveyor.yml
@@ -12,9 +12,9 @@ install:
- git config --global user.name "anycli"
- yarn add -D nyc @anycli/nyc-config
test_script:
- - yarn exec nyc --nycrc-path node_modules/@anycli/nyc-config/.nycrc yarn test
+ - yarn exec nyc -- --nycrc-path node_modules/@anycli/nyc-config/.nycrc yarn test
after_test:
- - yarn exec nyc --nycrc-path node_modules/@anycli/nyc-config/.nycrc report --reporter text-lcov > coverage.lcov
+ - yarn exec nyc -- --nycrc-path node_modules/@anycli/nyc-config/.nycrc report --reporter text-lcov > coverage.lcov
- ps: |
$env:PATH = 'C:\msys64\usr\bin;' + $env:PATH
Invoke-WebRequest -Uri 'https://codecov.io/bash' -OutFile codecov.sh

MODIFY
templates/scripts/test.ejs
templates/scripts/test.ejs
@@ -26,9 +26,9 @@ fi
yarn add -D nyc@11 @anycli/nyc-config@0 mocha-junit-reporter@1<%- semantic_release ? " @commitlint/cli@6 @commitlint/config-conventional@6" : "" %>
mkdir -p reports
-NYC=(yarn exec nyc --nycrc-path node_modules/@anycli/nyc-config/.nycrc)
+NYC=(yarn exec nyc -- --nycrc-path node_modules/@anycli/nyc-config/.nycrc)
-MOCHA_FILE=reports/mocha.xml "${NYC[@]}" yarn run test --reporter mocha-junit-reporter
+MOCHA_FILE=reports/mocha.xml "${NYC[@]}" yarn test --reporter mocha-junit-reporter
"${NYC[@]}" report --reporter text-lcov > coverage.lcov
curl -s https://codecov.io/bash | bash

fix: fix yarn execs