fix: fix nyc on circle
MODIFY
templates/appveyor.yml.ejs
templates/appveyor.yml.ejs
@@ -10,7 +10,7 @@ install:
- git submodule update --init --recursive
- git config --global user.email "anycli@example.com"
- git config --global user.name "anycli"
- - yarn add -D nyc @anycli/nyc-config
+ - yarn add -D nyc@11 @anycli/nyc-config@0
test_script:
<%_ if (type === 'single' || type === 'multi') { _%>
- .\bin\run --version
@@ -18,9 +18,9 @@ test_script:
<%_ } else if (type === 'plugin') { _%>
- .\bin\run --help
<%_ } _%>
- - yarn exec nyc -- --nycrc-path node_modules/@anycli/nyc-config/.nycrc yarn test
+ - .\node_modules\.bin\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
+ - .\node_modules\.bin\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

fix: fix nyc on circle