Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .codesandbox/ci.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"node": "12",
"node": "24",
"buildCommand": "build",
"packages": ["packages/uri", "packages/http"],
"publishDirectory": {
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: styfle/cancel-workflow-action@0.9.1
- uses: actions/checkout@v2
- uses: umidbekk/actions/npm/install@v1
- run: yarn tsc
- run: yarn lint
- run: yarn test
- uses: superdispatch/actions/prepare-node-repo@v2
with:
pnpm-version: 10
- run: pnpm tsc
- run: pnpm lint
- run: pnpm test
- uses: codecov/codecov-action@v2
25 changes: 14 additions & 11 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: styfle/cancel-workflow-action@0.9.1
- uses: actions/checkout@v2
- uses: umidbekk/actions/npm/install@v1
- run: yarn tsc
- run: yarn lint
- run: yarn test
- uses: superdispatch/actions/prepare-node-repo@v2
with:
pnpm-version: 10
- run: pnpm tsc
- run: pnpm lint
- run: pnpm test
- uses: codecov/codecov-action@v2
- uses: EndBug/add-and-commit@v7
if: ${{ failure() && github.actor == 'renovate' }}
Expand All @@ -21,9 +21,12 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: umidbekk/actions/npm/install@v1
- uses: superdispatch/actions/build-size/limit@v1
- uses: superdispatch/actions/prepare-node-repo@v2
with:
pnpm-version: 10
- uses: superdispatch/actions/build-size/limit@v2
env:
NODE_OPTIONS: --openssl-legacy-provider
with:
install_command: 'yarn install'
build_command: 'yarn build'
install_command: 'pnpm install'
build_command: 'pnpm build'
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,4 @@ packages/*/pkg/
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*

2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

yarn lint-staged
pnpm lint-staged
2 changes: 1 addition & 1 deletion .husky/pre-push
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

yarn tsc
pnpm tsc
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
pkg/
coverage/
lerna.json
pnpm-lock.yaml
3 changes: 1 addition & 2 deletions lerna.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"version": "0.5.0",
"npmClient": "yarn",
"useWorkspaces": true,
"npmClient": "pnpm",
"packages": [
"packages/*"
],
Expand Down
20 changes: 8 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,12 @@
"type": "git",
"url": "https://github.com/superdispatch/http.git"
},
"workspaces": {
"packages": [
"packages/*"
]
},
"scripts": {
"build": "lerna run version --no-private",
"lint": "js-tools lint",
"prerelease": "yarn --force && yarn tsc && yarn lint && yarn test",
"prerelease": "pnpm install && pnpm tsc && pnpm lint && pnpm test",
"release": "lerna publish",
"size": "yarn build && size-limit",
"size": "pnpm build && size-limit",
"tdd": "jest --watch",
"test": "jest --coverage --forceExit",
"prepare": "husky install"
Expand Down Expand Up @@ -54,10 +49,6 @@
"jest-watch-typeahead/testname"
]
},
"resolutions": {
"rollup-plugin-dts": "^3.0.2",
"typescript": "4.6.4"
},
"devDependencies": {
"@pika/pack": "0.5.0",
"@pika/plugin-build-node": "0.9.2",
Expand Down Expand Up @@ -88,8 +79,13 @@
"typescript": "4.6.4",
"uritemplate-test": "https://github.com/uri-templates/uritemplate-test"
},
"pnpm": {
"overrides": {
"rollup-plugin-dts": "^3.0.2"
}
},
"engines": {
"node": ">=12.0.0"
"node": ">=24"
},
"resetMocks": true,
"size-limit": [
Expand Down
2 changes: 1 addition & 1 deletion packages/http/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
### Installation

```bash
yarn add @superdispatch/http
pnpm add @superdispatch/http
```

### Usage
Expand Down
5 changes: 4 additions & 1 deletion packages/http/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,17 @@
"module": "pkg/dist-web/index.js",
"types": "src/index.ts",
"scripts": {
"version": "pika build"
"version": "pika-pack build"
},
"dependencies": {
"@superdispatch/uri": "^0.5.0"
},
"peerDependencies": {
"@babel/runtime": "^7.0.0"
},
"devDependencies": {
"@pika/pack": "0.5.0"
},
"publishConfig": {
"access": "public",
"directory": "pkg"
Expand Down
2 changes: 1 addition & 1 deletion packages/uri/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@
### Installation

```bash
yarn add @superdispatch/uri
pnpm add @superdispatch/uri
```
5 changes: 4 additions & 1 deletion packages/uri/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@
"module": "pkg/dist-web/index.js",
"types": "src/index.ts",
"scripts": {
"version": "pika build"
"version": "pika-pack build"
},
"devDependencies": {
"@pika/pack": "0.5.0"
},
"publishConfig": {
"access": "public",
Expand Down
2 changes: 2 additions & 0 deletions packages/uri/src/parseURITemplate.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ test('spec content', () => {
`);
expect(Object.keys(examplesBySection)).toMatchInlineSnapshot(`
Array [
"2.1 Literals",
"3.2.1 Variable Expansion",
"3.2.2 Simple String Expansion",
"3.2.3 Reserved Expansion",
Expand All @@ -38,6 +39,7 @@ test('spec content', () => {
"Additional Examples 3: Empty Variables",
"Additional Examples 4: Numeric Keys",
"Additional Examples 5: Explode Combinations",
"Additional Examples 6: Reserved Expansion",
]
`);
});
Expand Down
Loading
Loading