Skip to content

[bug] failing with workspaces setup in package.json #160

@Nick2bad4u

Description

@Nick2bad4u
typesync --dry .\package.json
»  TypeSync v0.14.3
»  —— DRY RUN — will not modify file ——
✖  docs\docusaurus\blog\package.json does not exist.
Stack:
Error: docs\docusaurus\blog\package.json does not exist.
    at readFileContents (file:///C:/Users/Nick/AppData/Roaming/npm/node_modules/typesync/dist/cli.js:81:36)
    at async Object.readPackageFile (file:///C:/Users/Nick/AppData/Roaming/npm/node_modules/typesync/dist/cli.js:91:21)
    at async file:///C:/Users/Nick/AppData/Roaming/npm/node_modules/typesync/dist/type-syncer-D40qMMFq.js:194:137
    at async Promise.all (index 2)
    at async Object.sync (file:///C:/Users/Nick/AppData/Roaming/npm/node_modules/typesync/dist/type-syncer-D40qMMFq.js:194:23)
    at async file:///C:/Users/Nick/AppData/Roaming/npm/node_modules/typesync/dist/cli.js:253:97
    at async spinWhile (file:///C:/Users/Nick/AppData/Roaming/npm/node_modules/typesync/dist/cli.js:41:9)
    at async run (file:///C:/Users/Nick/AppData/Roaming/npm/node_modules/typesync/dist/cli.js:253:17)
    at async startCli (file:///C:/Users/Nick/AppData/Roaming/npm/node_modules/typesync/dist/cli.js:234:3)
    at async file:///C:/Users/Nick/AppData/Roaming/npm/node_modules/typesync/bin/typesync:4:1
    "workspaces": [
        "docs/docusaurus"
    ],

removing the workspaces to run typesync runs fine. for context my package.json is in docs\docusaurus\package.json

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions