Skip to content

Commit

Permalink
Build ncc directly from typescript source (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomjschuster authored Aug 15, 2022
1 parent 3e5972e commit 59a66d8
Show file tree
Hide file tree
Showing 11 changed files with 2,012 additions and 2,475 deletions.
1 change: 0 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
dist/
lib/
node_modules/
jest.config.js
9 changes: 3 additions & 6 deletions .github/workflows/check-dist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,15 @@ jobs:
steps:
- uses: actions/checkout@v2

- name: Set Node.js 12.x
uses: actions/setup-node@v2.5.1
- uses: actions/setup-node@v3.4.1
with:
node-version: 12.x
node-version: 16.x

- name: Install dependencies
run: npm ci

- name: Rebuild the dist/ directory
run: |
npm run build
npm run package
run: npm run build

- name: Compare the expected and actual dist/ directories
run: |
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: |
npm install
- run: |
npm run all
- run: npm ci
- run: npm run all
- name: Report coverage
uses: coverallsapp/github-action@master
with:
Expand Down
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -98,5 +98,4 @@ typings/
Thumbs.db

# Ignore built ts files
__tests__/runner/*
lib/**/*
__tests__/runner/*
1 change: 0 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
dist/
lib/
node_modules/
Loading

0 comments on commit 59a66d8

Please sign in to comment.