Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@hyrious/dts

Package Overview
Dependencies
Maintainers
0
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hyrious/dts - npm Package Compare versions

Comparing version 0.2.5 to 0.2.6

9

cli.js

@@ -6,3 +6,3 @@ #!/usr/bin/env node

// node_modules/.pnpm/yoctocolors@2.1.1/node_modules/yoctocolors/base.js
// node_modules/yoctocolors/base.js
import tty from "node:tty";

@@ -35,2 +35,3 @@ var hasColors = tty?.WriteStream?.prototype?.hasColors?.() ?? false;

var bgBlue = /* @__PURE__ */ format(44, 49);
var bgGray = /* @__PURE__ */ format(100, 49);

@@ -44,3 +45,3 @@ // src/cli.ts

var name = "@hyrious/dts";
var version = "0.2.5";
var version = "0.2.6";
var description = "Invoke rollup-plugin-dts to generate bundled .d.ts file";

@@ -83,2 +84,6 @@

sade(name).version(version).describe(description).command("build [index.ts]", "Build a .d.ts file from a .ts file", { default: true }).option("-o, --outfile", "Output file").option("-i, --include", "Force include a module in the bundle").option("-e, --exclude", "Force exclude a module from the bundle").option("-p, --patch", "Patch rollup-plugin-dts to handle `/// doc comments`").option("-a, --alias", "Rename an external path to something else").example("src/index.ts -o dist/index.d.ts").action(async (entry, options) => {
if (process.env.NO_DTS) {
console.log(`${bgGray(black(" DTS "))} Skipping build due to env NO_DTS`);
return;
}
entry ||= guess_entry(process.cwd());

@@ -85,0 +90,0 @@ entry = entry.replace(/[\\]/g, "/");

import { RollupOutput } from 'rollup';
import { Options } from 'rollup-plugin-dts';
declare const version = "0.2.5";
declare const version = "0.2.6";

@@ -6,0 +6,0 @@ interface BuildOptions {

// src/index.ts
import json from "@rollup/plugin-json";
// node_modules/.pnpm/escalade@3.1.2/node_modules/escalade/sync/index.mjs
// node_modules/escalade/sync/index.mjs
import { dirname, resolve } from "path";

@@ -29,3 +29,3 @@ import { readdirSync, statSync } from "fs";

// package.json
var version = "0.2.5";
var version = "0.2.6";

@@ -32,0 +32,0 @@ // src/index.ts

{
"name": "@hyrious/dts",
"type": "module",
"version": "0.2.5",
"version": "0.2.6",
"description": "Invoke rollup-plugin-dts to generate bundled .d.ts file",

@@ -19,11 +19,14 @@ "author": "hyrious <hyrious@outlook.com>",

"files": [
"src",
"cli.js",
"index.d.ts",
"index.js",
"patch.js",
"src"
"index.d.ts"
],
"scripts": {
"build": "esbuild-dev scripts/build.ts"
},
"dependencies": {
"@rollup/plugin-json": "^6.1.0",
"rollup": "^4.19.1",
"rollup": "^4.21.0",
"rollup-plugin-dts": "^6.1.1",

@@ -34,11 +37,9 @@ "sade": "^1.8.1",

"devDependencies": {
"@hyrious/esbuild-dev": "^0.10.6",
"@types/node": "^20.14.12",
"esbuild": "^0.23.0",
"@hyrious/configs": "^0.1.3",
"@hyrious/esbuild-dev": "^0.10.8",
"@types/node": "^20.16.1",
"esbuild": "^0.23.1",
"escalade": "^3.1.2",
"yoctocolors": "^2.1.1"
},
"scripts": {
"build": "esbuild-dev scripts/build.ts"
}
}
}

@@ -13,2 +13,6 @@ # @hyrious/dts

### 0.2.6
- Add `NO_DTS` env to disable dts generation when using the CLI.
### 0.2.5

@@ -15,0 +19,0 @@

import sade from 'sade'
import { bgBlue, black } from 'yoctocolors'
import { bgBlue, bgGray, black } from 'yoctocolors'

@@ -64,2 +64,7 @@ import { existsSync } from 'fs'

.action(<SadeHandler1<'outfile' | 'include' | 'exclude' | 'patch' | 'alias'>>(async (entry, options) => {
if (process.env.NO_DTS) {
console.log(`${bgGray(black(' DTS '))} Skipping build due to env NO_DTS`)
return
}
entry ||= guess_entry(process.cwd())

@@ -66,0 +71,0 @@ entry = entry.replace(/[\\]/g, '/')

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc