Skip to content
This repository was archived by the owner on Jan 24, 2025. It is now read-only.
This repository was archived by the owner on Jan 24, 2025. It is now read-only.

Rollback typescript as peer-dependency at all #1675

@renatobenks

Description

@renatobenks

Bug Report

Describe the bug

Basically, within the latest changes that came in, users not using typescript will face some troubles installing docz, because typescript was been added as peer-dependency, which introduced this new breaking-change that it's not interesting for any of us.

To Reproduce

  1. Install docz (npm install docz —-save-dev) where you don't have typescript.
  2. See error in console

Expected behavior

Users not using typescript and their codebases should be able still to install and use docz.

Steps:

  • rollback typescript as peer-dependency and find a manageable way to compat user-land typescript version over the internally used one.
  • set typescript only conditionally as a peer-dependency in a way that will work to users using typescript, based on flag typescript: true from config

Environment

  • docz version: 2.3.3-alpha.0

Additional context/Screenshots

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingupstreamIssue originates from dependency

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions