Skip to content

Commit 10f596b

Browse files
committed
update
1 parent c144494 commit 10f596b

5 files changed

Lines changed: 10 additions & 4314 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,6 @@ jobs:
2020
node-version:
2121
- 20
2222
- 22
23-
package-manager:
24-
- npm
25-
- pnpm
2623

2724
steps:
2825
- name: Checkout repository
@@ -32,16 +29,11 @@ jobs:
3229
uses: actions/setup-node@v4
3330
with:
3431
node-version: ${{ matrix.node-version }}
35-
cache: ${{ matrix.package-manager }}
32+
cache: npm
3633

37-
- name: Install dependencies (npm)
38-
if: matrix.package-manager == 'npm'
34+
- name: Install dependencies
3935
run: npm ci
4036

41-
- name: Install dependencies (pnpm)
42-
if: matrix.package-manager == 'pnpm'
43-
run: corepack enable pnpm && pnpm install --frozen-lockfile
44-
4537
- name: Build package
4638
run: npm run build
4739

.npmignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,4 @@ test/
77
.gitignore
88
CHANGELOG.md
99
package-lock.json
10-
pnpm-lock.yaml
1110
rollup.config.js

README.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ Exprify is a JavaScript expression parser and evaluator for math-heavy apps. It
88

99
```bash
1010
npm install exprify
11+
# or
12+
yarn add exprify
1113
```
1214

1315
## Quick Start
@@ -271,7 +273,7 @@ Depending on the expression, `evaluate()` may return:
271273
```bash
272274
git clone https://github.com/code-hemu/Exprify.git
273275
cd Exprify
274-
npm install # or: pnpm install
276+
npm install
275277
npm run build
276278
```
277279

@@ -280,16 +282,16 @@ Build output is written to `dist/`.
280282
## Testing
281283

282284
```bash
283-
npm test # or: pnpm test
285+
npm test
284286
```
285287

286-
Both `npm` and `pnpm` are exercised in CI across Node 20 and 22 (see `.github/workflows/ci.yml`).
288+
Tested in CI across Node 20 and 22 (see `.github/workflows/ci.yml`).
287289

288-
### Lockfiles
290+
## Publishing
289291

290-
`package-lock.json` (npm) and `pnpm-lock.yaml` (pnpm) are both committed. Neither is shipped in the published tarball (see `.npmignore`); npm/pnpm consumers generate their own lockfiles when installing.
292+
The package is published to the public npm registry via `npm publish`. The `npm-publish.yml` workflow runs on GitHub release events. See `.github/workflows/npm-publish.yml` for details.
291293

292-
The project intentionally does **not** pin a `packageManager` field. npm 11 and pnpm 11 both refuse to install in a project pinned to the other manager, so leaving it unset lets contributors use either tool freely. The CI matrix (`.github/workflows/ci.yml`) is the authoritative cross-manager test.
294+
`package-lock.json` is committed but is not shipped in the published tarball (see `.npmignore`); consumers generate their own lockfile when installing.
293295

294296
## License
295297

0 commit comments

Comments
 (0)