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

Scripts using pulse crash without installed tslib package #60

@mrtusc

Description

@mrtusc

Description

Scripts using pulse do not start without installed tslib package. Instead they crash and show the error message "Error: Cannot find module 'tslib'".

To reproduce the error, just do the following in an empty folder:

npm init -y
npm install @pulsecron/pulse
echo "const p = require('@pulsecron/pulse')" > index.js
node index.js

With an additional npm install tslib the script runs without error.

Expected behavior

The script should run without error even without explicitely adding tslib as dependency.

Code example

No response

Additional context

Used versions:

  • Node@20.18.0
  • Node@22.11.0
  • @pulsecron/pulse@1.6.3

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions