Skip to content

Commit f06c94a

Browse files
authored
Update to publish to npm. (#3)
1 parent f9dc673 commit f06c94a

File tree

4 files changed

+5
-13
lines changed

4 files changed

+5
-13
lines changed

.changeset/tame-nails-know.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@smooai/file': patch
3+
---
4+
5+
Update to publish to npm.

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{
22
"name": "@smooai/file",
33
"version": "1.0.3",
4-
"private": true,
54
"description": "A powerful file handling library for Node.js that provides a unified interface for working with files from local filesystem, S3, URLs, and more. Built with streaming in mind, it handles file bytes lazily where possible to minimize memory usage and improve performance.",
65
"homepage": "https://github.com/SmooAI/file#readme",
76
"bugs": {

src/File.integration.spec.ts

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,6 @@ const TEST_FILES = {
1616
pdf: path.join(TEST_DIR, 'icon.pdf'),
1717
} as const;
1818

19-
type TestFileKey = keyof typeof TEST_FILES;
20-
21-
// Create a reverse map of file basenames to their keys in TEST_FILES
22-
const TEST_FILES_REVERSE = Object.entries(TEST_FILES).reduce(
23-
(acc, [key, filePath]) => {
24-
acc[path.basename(filePath)] = key as TestFileKey;
25-
return acc;
26-
},
27-
{} as Record<string, TestFileKey>,
28-
);
29-
3019
// Helper function to determine MIME type based on file extension
3120
function getMimeType(fileName: string): string {
3221
const ext = path.extname(fileName).toLowerCase();

src/File.spec.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ const {
1616
resetMockSteamFileTypeResult,
1717
mockWriteStream,
1818
mockSteamFileTypeResult,
19-
mockStreamContent,
2019
setMockStreamContent,
2120
resetMockStreamContent,
2221
} = vi.hoisted(() => {

0 commit comments

Comments
 (0)