fix actions

This commit is contained in:
adueck 2023-08-14 15:09:38 +04:00
parent 160daec163
commit e930bdae15
4 changed files with 9 additions and 9 deletions

View File

@ -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
yarn test --silent

View File

@ -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
npm publish

View File

@ -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": {}
}
}

View File

@ -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);
}