@favware/rollup-type-bundler
Advanced tools
Comparing version 1.0.4-next.55a77d5.0 to 1.0.4-next.55d03a9.0
@@ -19,2 +19,3 @@ import { indent, packageCwd } from '#lib/constants'; | ||
catch (err) { | ||
const typedError = err; | ||
logVerboseError({ | ||
@@ -30,3 +31,3 @@ text: [ | ||
'Furthermore, the exact error that occurred is: ', | ||
err | ||
typedError.stack ?? typedError.message | ||
].filter(Boolean), | ||
@@ -33,0 +34,0 @@ logWithThrownError: true |
@@ -0,3 +1,3 @@ | ||
import { logVerboseError } from '#lib/logVerbose'; | ||
import { rm } from 'fs/promises'; | ||
import { logVerboseError } from '#lib/logVerbose'; | ||
/** | ||
@@ -12,6 +12,7 @@ * Removes the `dist` directory ahead of rebuilding code to ensure a clean build | ||
catch (error) { | ||
const typedError = error; | ||
logVerboseError({ | ||
text: ['Failed to clean the configured "dist" directory. Is the path accessible?'], | ||
verbose: options.verbose, | ||
verboseText: ['The error message that was thrown is: ', error], | ||
verboseText: ['The error message that was thrown is: ', typedError.stack ?? typedError.message], | ||
logWithThrownError: true | ||
@@ -18,0 +19,0 @@ }); |
@@ -38,6 +38,12 @@ import { logVerboseError } from '#lib/logVerbose'; | ||
catch (err) { | ||
const typedError = err; | ||
logVerboseError({ | ||
text: ['An error occurred while removing one or more of the extraneous types from the `dist` directory.', 'Please remove them manually'], | ||
verbose: options.verbose, | ||
verboseText: ['I was scanning this dist path: ', options.dist.toString(), 'Furthermore, the exact error that occurred is: ', err], | ||
verboseText: [ | ||
'I was scanning this dist path: ', | ||
options.dist.toString(), | ||
'Furthermore, the exact error that occurred is: ', | ||
typedError.stack ?? typedError.message | ||
], | ||
logWithThrownError: true | ||
@@ -44,0 +50,0 @@ }); |
@@ -0,1 +1,2 @@ | ||
import { filterNullish } from '@sapphire/utilities'; | ||
import { cyan, red } from 'colorette'; | ||
@@ -8,3 +9,3 @@ /** | ||
if (verbose) { | ||
text = text.concat(verboseText); | ||
text = text.concat(verboseText.filter(filterNullish)); | ||
} | ||
@@ -11,0 +12,0 @@ const message = red(text.join('\n')); |
@@ -28,2 +28,3 @@ import { packageCwd, rollupTypeBundlerRcJsonPath, rollupTypeBundlerRcPath, rollupTypeBundlerRcYamlPath, rollupTypeBundlerRcYmlPath } from '#lib/constants'; | ||
catch (err) { | ||
const typedError = err; | ||
logVerboseError({ | ||
@@ -37,3 +38,3 @@ text: ['Failed to read yaml config file'], | ||
'Full error: ', | ||
err | ||
typedError.stack ?? typedError.message | ||
], | ||
@@ -54,2 +55,3 @@ exitAfterLog: true | ||
catch (err) { | ||
const typedError = err; | ||
logVerboseError({ | ||
@@ -63,3 +65,3 @@ text: ['Failed to read json config file'], | ||
'Full error: ', | ||
err | ||
typedError.stack ?? typedError.message | ||
], | ||
@@ -66,0 +68,0 @@ exitAfterLog: true |
{ | ||
"name": "@favware/rollup-type-bundler", | ||
"version": "1.0.4-next.55a77d5.0", | ||
"version": "1.0.4-next.55d03a9.0", | ||
"description": "A small CLI tool to bundle types with rollup", | ||
@@ -42,6 +42,7 @@ "author": "@favware", | ||
"dependencies": { | ||
"colorette": "^1.2.2", | ||
"commander": "^8.0.0", | ||
"@sapphire/utilities": "^2.0.1", | ||
"colorette": "^1.4.0", | ||
"commander": "^8.2.0", | ||
"js-yaml": "^4.1.0", | ||
"rollup": "^2.52.6", | ||
"rollup": "^2.56.3", | ||
"rollup-plugin-dts": "^3.0.2" | ||
@@ -52,14 +53,14 @@ }, | ||
"@commitlint/config-conventional": "^12.1.4", | ||
"@sapphire/eslint-config": "^3.2.0", | ||
"@sapphire/eslint-config": "^3.2.3", | ||
"@sapphire/prettier-config": "^1.1.4", | ||
"@sapphire/ts-config": "^2.3.0", | ||
"@types/js-yaml": "^4.0.1", | ||
"@types/node": "^15.12.4", | ||
"@sapphire/ts-config": "^2.3.2", | ||
"@types/js-yaml": "^4.0.3", | ||
"@types/node": "^15.14.9", | ||
"cz-conventional-changelog": "^3.3.0", | ||
"husky": "^6.0.0", | ||
"lint-staged": "^11.0.0", | ||
"lint-staged": "^11.1.2", | ||
"pretty-quick": "^3.1.1", | ||
"standard-version": "^9.3.0", | ||
"ts-node": "^10.0.0", | ||
"typescript": "^4.3.4" | ||
"standard-version": "^9.3.1", | ||
"ts-node": "^10.2.1", | ||
"typescript": "^4.4.2" | ||
}, | ||
@@ -66,0 +67,0 @@ "engines": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
27466
360
6
+ Added@sapphire/utilities@^2.0.1
+ Added@sapphire/utilities@2.0.1(transitive)
Updatedcolorette@^1.4.0
Updatedcommander@^8.2.0
Updatedrollup@^2.56.3