diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 19ad03c..51aad35 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,9 +2,9 @@ name: CI on: push: - branches: [ '*' ] + branches: ["*"] pull_request: - branches: [ '*' ] + branches: ["*"] workflow_dispatch: @@ -23,4 +23,4 @@ jobs: run: | yarn install-r yarn build-library - yarn test --silent \ No newline at end of file + yarn test --silent diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index ff4e4cc..29ae360 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -2,7 +2,7 @@ name: Publish on: push: - branches: [ 'master' ] + branches: ["master"] workflow_dispatch: @@ -34,4 +34,4 @@ jobs: cd src/lib npm publish cd ../components - npm publish \ No newline at end of file + npm publish diff --git a/package.json b/package.json index d33a59d..ca61b1b 100644 --- a/package.json +++ b/package.json @@ -40,7 +40,7 @@ "build": "react-scripts build", "test": "react-scripts test", "eject": "react-scripts eject", - "install-r": "yarn install && cd src/lib && yarn install && cd ../components && yarn install", + "install-r": "yarn install && node get-words.js && cd src/lib && yarn install && cd ../components && yarn install", "build-website": "node get-words.js && npm run build", "build-library": "cd src/components && rimraf dist && tsc --project lib-tsconfig.json && node post-build.cjs && cd ../lib && rimraf dist && tsc --project lib-tsconfig.json && node_modules/rollup/dist/bin/rollup -c", "test-ci": "npm run test -- --watchAll=false", @@ -77,4 +77,4 @@ ] }, "dependencies": {} -} +} \ No newline at end of file diff --git a/src/lib/src/new-verb-engine/render-verb.ts b/src/lib/src/new-verb-engine/render-verb.ts index 57e5dcb..c2ae0eb 100644 --- a/src/lib/src/new-verb-engine/render-verb.ts +++ b/src/lib/src/new-verb-engine/render-verb.ts @@ -402,9 +402,9 @@ function ensure3rdPast( }); return [aspect === "imperfective" ? accentOnNFromEnd(aawuEnd, 0) : aawuEnd]; } - const endsInDental = ["د", "ت"].includes(rs[0].p.slice(-1)); + const abruptEnder = ["د", "ت", "ړ"].includes(rs[0].p.slice(-1)); // short endings like ورسېد - const ends = endsInDental ? [{ p: "", f: "" }, ...ending] : ending; + const ends = abruptEnder ? [{ p: "", f: "" }, ...ending] : ending; return verbEndingConcat(rs, ends); }