Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: sanity-io/pkg-utils
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v2.2.2
Choose a base ref
...
head repository: sanity-io/pkg-utils
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v2.2.3
Choose a head ref
  • 11 commits
  • 8 files changed
  • 3 contributors

Commits on Jan 20, 2023

  1. chore: test pkg engines on CI

    stipsan committed Jan 20, 2023

    Unverified

    This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
    Copy the full SHA
    c066ae9 View commit details
  2. chore(deps): update pnpm to v7.25.1 (#44)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Jan 20, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    49e339e View commit details
  3. Unverified

    This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
    Copy the full SHA
    8e16dcb View commit details
  4. chore(deps): update dependencies (non-major) (#39)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Jan 20, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    01160b3 View commit details
  5. chore(deps): update actions/checkout digest to ac59398 (#50)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Jan 20, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    5fe35a4 View commit details
  6. chore(deps): update actions/setup-node digest to 64ed1c7 (#51)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Jan 20, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    2d057c9 View commit details
  7. chore(deps): update devdependencies (non-major) (#45)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Jan 20, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    8cbdc9a View commit details
  8. chore(deps): update devdependencies (non-major) (#41)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Jan 20, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    9cc6705 View commit details
  9. chore(deps): lock file maintenance (#52)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Jan 20, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    6e77512 View commit details
  10. fix(deps): update dependency rimraf to v4 (#48)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    Co-authored-by: Cody Olsen <81981+stipsan@users.noreply.github.com>
    renovate[bot] and stipsan authored Jan 20, 2023

    Partially verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    We cannot verify signatures from co-authors, and some of the co-authors attributed to this commit require their commits to be signed.
    Copy the full SHA
    0e18e4f View commit details
  11. Copy the full SHA
    ccd9d6a View commit details
Showing with 362 additions and 76 deletions.
  1. +4 −4 .github/workflows/main.yml
  2. +6 −0 CHANGELOG.md
  3. +19 −19 package.json
  4. +1 −1 playground/runtime-astro/package.json
  5. +2 −2 playground/runtime-next-js/package.json
  6. +328 −42 pnpm-lock.yaml
  7. +1 −4 src/node/tasks/dts/doExtract.ts
  8. +1 −4 test/env/spawnProject.ts
8 changes: 4 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -18,9 +18,9 @@ jobs:
platform: [ubuntu-latest, macos-latest]
node-version: [lts/*, current]
steps:
- uses: actions/checkout@755da8c3cf115ac066823e79a1e1788f8940201b # v3
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3
- uses: pnpm/action-setup@v2
- uses: actions/setup-node@8c91899e586c5b171469028077307d293428b516 # v3
- uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3
with:
cache: pnpm
node-version: ${{ matrix.node-version }}
@@ -34,13 +34,13 @@ jobs:
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@755da8c3cf115ac066823e79a1e1788f8940201b # v3
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3
with:
# Need to fetch entire commit history to
# analyze every commit since last release
fetch-depth: 0
- uses: pnpm/action-setup@v2
- uses: actions/setup-node@8c91899e586c5b171469028077307d293428b516 # v3
- uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3
with:
cache: pnpm
node-version: lts/*
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -5,6 +5,12 @@
All notable changes to this project will be documented in this file. See
[Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [2.2.3](https://github.com/sanity-io/pkg-utils/compare/v2.2.2...v2.2.3) (2023-01-20)

### Bug Fixes

- **deps:** update dependency rimraf to v4 ([#48](https://github.com/sanity-io/pkg-utils/issues/48)) ([0e18e4f](https://github.com/sanity-io/pkg-utils/commit/0e18e4fbd559c5456a5efcf92f29c02c5508595b))

## [2.2.2](https://github.com/sanity-io/pkg-utils/compare/v2.2.1...v2.2.2) (2023-01-20)

### Bug Fixes
38 changes: 19 additions & 19 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"type": "module",
"name": "@sanity/pkg-utils",
"version": "2.2.2",
"version": "2.2.3",
"author": "Sanity.io <hello@sanity.io>",
"license": "MIT",
"description": "Simple utilities for modern npm packages.",
@@ -56,46 +56,46 @@
"watch": "node --loader esbuild-register/loader -r esbuild-register scripts/watch"
},
"dependencies": {
"@babel/core": "^7.20.7",
"@babel/core": "^7.20.12",
"@babel/preset-env": "^7.20.2",
"@babel/types": "^7.20.7",
"@microsoft/api-extractor": "^7.33.7",
"@microsoft/api-extractor": "^7.33.8",
"@microsoft/tsdoc-config": "^0.16.2",
"@rollup/plugin-alias": "^4.0.2",
"@rollup/plugin-babel": "^6.0.3",
"@rollup/plugin-commonjs": "^24.0.0",
"@rollup/plugin-json": "^6.0.0",
"@rollup/plugin-node-resolve": "^15.0.1",
"@rollup/plugin-replace": "^5.0.2",
"@rollup/plugin-terser": "^0.2.1",
"@rollup/plugin-terser": "^0.3.0",
"browserslist": "^4.21.4",
"cac": "^6.7.14",
"chalk": "^4.1.2",
"chokidar": "^3.5.3",
"esbuild": "^0.16.12",
"esbuild": "^0.17.3",
"esbuild-register": "^3.4.2",
"find-config": "^1.0.0",
"globby": "^11.1.0",
"jsonc-parser": "^3.2.0",
"mkdirp": "^2.1.3",
"pkg-up": "^3.1.0",
"prettier": "^2.8.1",
"prettier": "^2.8.3",
"pretty-bytes": "^5.6.0",
"recast": "^0.22.0",
"rimraf": "^3.0.2",
"rollup": "^3.9.0",
"rimraf": "^4.1.1",
"rollup": "^3.10.0",
"rollup-plugin-esbuild": "^5.0.0",
"rxjs": "^7.8.0",
"treeify": "^1.1.0",
"uuid": "^9.0.0",
"zod": "^3.20.2"
},
"devDependencies": {
"@commitlint/cli": "^17.3.0",
"@commitlint/config-conventional": "^17.3.0",
"@commitlint/cli": "^17.4.2",
"@commitlint/config-conventional": "^17.4.2",
"@sanity/pkg-utils": "workspace:*",
"@sanity/semantic-release-preset": "4.0.0",
"@types/babel__core": "^7.1.20",
"@types/babel__core": "^7.20.0",
"@types/cpx": "^1.5.2",
"@types/find-config": "^1.0.1",
"@types/mkdirp": "^1.0.2",
@@ -104,24 +104,24 @@
"@types/rimraf": "^3.0.2",
"@types/treeify": "^1.0.0",
"@types/uuid": "^9.0.0",
"@typescript-eslint/eslint-plugin": "^5.47.1",
"@typescript-eslint/parser": "^5.47.1",
"commitizen": "^4.2.6",
"@typescript-eslint/eslint-plugin": "^5.48.2",
"@typescript-eslint/parser": "^5.48.2",
"commitizen": "^4.3.0",
"cpx": "^1.5.0",
"cz-conventional-changelog": "^3.3.0",
"eslint": "^8.31.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-import": "^2.26.0",
"eslint": "^8.32.0",
"eslint-config-prettier": "^8.6.0",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-prettier": "^4.2.1",
"husky": "^8.0.2",
"husky": "^8.0.3",
"lint-staged": "^13.1.0",
"npm-run-all": "^4.1.5",
"outdent": "^0.8.0",
"rollup-plugin-visualizer": "^5.9.0",
"semantic-release": "^20.0.2",
"ts-node": "^10.9.1",
"typescript": "^4.9.4",
"vitest": "^0.26.3"
"vitest": "^0.27.2"
},
"peerDependencies": {
"typescript": "^4.7"
2 changes: 1 addition & 1 deletion playground/runtime-astro/package.json
Original file line number Diff line number Diff line change
@@ -12,7 +12,7 @@
"start": "astro dev"
},
"dependencies": {
"astro": "^1.9.1",
"astro": "^1.9.2",
"dummy-commonjs": "workspace:*",
"dummy-module": "workspace:*"
}
4 changes: 2 additions & 2 deletions playground/runtime-next-js/package.json
Original file line number Diff line number Diff line change
@@ -12,9 +12,9 @@
"dummy-module": "workspace:*",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"next": "^13.1.1"
"next": "^13.1.2"
},
"devDependencies": {
"@types/react": "^18.0.26"
"@types/react": "^18.0.27"
}
}
370 changes: 328 additions & 42 deletions pnpm-lock.yaml

Large diffs are not rendered by default.

5 changes: 1 addition & 4 deletions src/node/tasks/dts/doExtract.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
import path from 'path'
import {promisify} from 'util'
import {ExtractorMessage} from '@microsoft/api-extractor'
import rimrafCallback from 'rimraf'
import rimraf from 'rimraf'
import {BuildContext} from '../../core'
import {buildTypes} from './buildTypes'
import {DtsError} from './DtsError'
import {extractTypes} from './extractTypes'
import {DtsResult, DtsTask, DtsWatchTask} from './types'

const rimraf = promisify(rimrafCallback)

/**
* - Build type definitions to a temporary directory using TypeScript compiler.
* - Create a type definition bundle for each export entry.
5 changes: 1 addition & 4 deletions test/env/spawnProject.ts
Original file line number Diff line number Diff line change
@@ -2,17 +2,14 @@

import fs from 'fs/promises'
import path from 'path'
import {promisify} from 'util'
import cpx from 'cpx'
import mkdirp from 'mkdirp'
import _rimraf from 'rimraf'
import rimraf from 'rimraf'
import {v4 as uuid} from 'uuid'
import {exec} from './exec'
import {ExecError} from './ExecError'
import {stripColor} from './stripColor'

const rimraf = promisify(_rimraf)

async function tmpWorkspace() {
const key = uuid()
const workspacePath = path.resolve(__dirname, `__tmp__/${key}`)