diff --git a/.github/workflows/test-builds.yml b/.github/workflows/test-builds.yml index 72502b1..fc10247 100644 --- a/.github/workflows/test-builds.yml +++ b/.github/workflows/test-builds.yml @@ -46,6 +46,14 @@ jobs: - name: Test run: npm test + - name: Install + run: | + npm install --global + + - name: Test CLI + run: | + sh -c '[ "$(npm exec -- uklatn -t DSTU_9112_B мрії мої)" = "mriji moji" ]' + build-py: runs-on: ubuntu-latest diff --git a/js/cli.js b/js/cli.js index 2962011..5f0dd1a 100755 --- a/js/cli.js +++ b/js/cli.js @@ -1,6 +1,6 @@ #!/usr/bin/env node import path from 'node:path'; -import * as uklatn from 'uklatn'; +import * as uklatn from './uklatn.js'; const _Usage = '[-h] [-t TABLE] [-c] [-l] text [text ...]\n';