Skip to content

Commit

Permalink
fix: handle localizePath trailing slash depending on astro's trailing…
Browse files Browse the repository at this point in the history
…Slash config

fixes #119
  • Loading branch information
yassinedoghri committed Feb 26, 2023
1 parent 17f41c2 commit 880666c
Show file tree
Hide file tree
Showing 16 changed files with 1,197 additions and 2,572 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,10 @@ jobs:

- name: Install and Build 🔧
run: |
pnpm install
pnpm install --frozen-lockfile
pnpm run build
cd website
pnpm install
pnpm link ..
pnpm install --frozen-lockfile
pnpm run build
- name: Deploy 🚀
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:

- name: Quality check 👌
run: |
pnpm install
pnpm install --frozen-lockfile
pnpm run typecheck
pnpm run lint
pnpm run prettier
Expand All @@ -49,7 +49,7 @@ jobs:

- name: Bundle 📦
run: |
pnpm install
pnpm install --frozen-lockfile
pnpm run build
- name: Upload bundle as artifact 📤
Expand Down Expand Up @@ -88,7 +88,7 @@ jobs:

- name: Release & Publish to NPM 🚀
run: |
pnpm install
pnpm install --frozen-lockfile
pnpm run semantic-release
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
version: 7

- name: Install dependencies 📥
run: pnpm install
run: pnpm install --frozen-lockfile

- name: Run tests and collect coverage 🛠️
run: pnpm run test:coverage
Expand Down
29 changes: 29 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# build output
dist

# dependencies
node_modules/

# logs
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Output of 'npm pack'
*.tgz

# macOS-specific files
.DS_Store

# cache
.eslintcache

# tests
coverage

# Local Netlify folder
.netlify

# pnpm
.pnpm-store
pnpm-lock.yaml
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ npm install astro-i18next i18next
or

```bash
pnpm install astro-i18next i18next
pnpm add astro-i18next i18next
```

or
Expand Down
2 changes: 1 addition & 1 deletion examples/react/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
### 1. Install

```bash
npm install astro-i18next @astrojs/react react-i18next
npm install astro-i18next i18next @astrojs/react react-i18next
```

### 2. Configure
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
"build": "./build.cjs && pnpm run typecheck:emit",
"pack": "pnpm run build && pnpm pack",
"lint": "eslint --ext js,cjs,ts .",
"prettier": "prettier --check --ignore-path .gitignore .",
"prettier:fix": "prettier --write --ignore-path .gitignore .",
"prettier": "prettier --check --ignore-path .prettierignore .",
"prettier:fix": "prettier --write --ignore-path .prettierignore .",
"typecheck": "tsc --noEmit",
"typecheck:emit": "tsc --declaration --emitDeclarationOnly --outDir dist/types",
"commit": "cz",
Expand Down Expand Up @@ -96,7 +96,7 @@
"cz-conventional-changelog": "^3.3.0",
"esbuild": "^0.17.10",
"esbuild-plugin-fileloc": "^0.0.6",
"eslint": "^8.34.0",
"eslint": "^8.35.0",
"eslint-config-prettier": "^8.6.0",
"eslint-config-standard": "^17.0.0",
"eslint-plugin-import": "^2.27.5",
Expand Down
Loading

0 comments on commit 880666c

Please sign in to comment.