-
Notifications
You must be signed in to change notification settings - Fork 67
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Environment
NodeJS: 20.19.5
package.json
{
"name": "@ezyostudio/argos",
"version": "1.51.1",
"main": "index.js",
"license": "MIT",
"type": "module",
"repository": "github:ezyostudio/argos",
"scripts": {
"preinstall": "npx only-allow pnpm",
"start": "NODE_ENV=production DEBUG=\"argos*\" NODE_OPTIONS=\"--import ./ts-node.register.mjs\" node index.ts",
...
"release": "npx changelogen@latest --release --clean --push"
},
"dependencies": {
...
},
"devDependencies": {
"@pnpm/exec": "^2.0.0",
"@swc/core": "^1.4.6",
...
"ts-node": "^10.9.2",
"typescript": "^4.9.5"
},
"packageManager": "[email protected]+sha512.76e2379760a4328ec4415815bcd6628dee727af3779aaa4c914e3944156c4299921a89f976381ee107d41f12cfa4b66681ca9c718f0668fa0831ed4c6d8ba56c"
}
Reproduction
Create an index.ts
file next to the package.json
Describe the bug
When running changelogen, i get an error from JITI which tries to execute my codebase
Additional context
I've added a check to prevent futher execution in my codebase
if (!process.env.npm_lifecycle_script === 'changelogen') {
// Run the script
}
Logs
class ServiceName extends _Eye.default {
^
TypeError: Class extends value #<Object> is not a constructor or null
at /Users/zaosoula/Github/argos/eyes/service-name/index.ts:4:41
at async import (/Users/zaosoula/.npm/_npx/fd5a125c5466fd2f/node_modules/jiti/dist/jiti.cjs:6:1734)
at async /Users/zaosoula/Github/argos/index.ts:156:22
at async Promise.all (index 7)
at async /Users/zaosoula/Github/argos/index.ts:153:3
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working