From e053edf3ad9e8c07f5756e0bb385aad2cd5efc06 Mon Sep 17 00:00:00 2001 From: "Jan T. Sott" Date: Fri, 17 Nov 2023 01:12:15 +0100 Subject: [PATCH] chore: rename entrypoint, export --- package.json | 2 +- src/{main.ts => webvsc.ts} | 0 tests/_helper.ts | 2 +- tsup.config.ts | 2 +- 4 files changed, 3 insertions(+), 3 deletions(-) rename src/{main.ts => webvsc.ts} (100%) diff --git a/package.json b/package.json index a68be4b..d6b3ce5 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "description": "A library to convert Winamp AVS presets into Webvs JSON", "license": "MIT", "type": "module", - "exports": "./dist/webvsc.mjs", + "exports": "./dist/webvsc.js", "types": "./dist", "engines": { "node": ">=18" diff --git a/src/main.ts b/src/webvsc.ts similarity index 100% rename from src/main.ts rename to src/webvsc.ts diff --git a/tests/_helper.ts b/tests/_helper.ts index 079535f..6f46cba 100644 --- a/tests/_helper.ts +++ b/tests/_helper.ts @@ -1,5 +1,5 @@ import { basename, extname } from 'node:path'; -import { convertPreset } from '../src/main'; +import { convertPreset } from '../src/webvsc'; import { promises as fs, readFileSync, statSync } from 'node:fs'; const defaultArgs = { diff --git a/tsup.config.ts b/tsup.config.ts index c230f2f..6fc0f2f 100644 --- a/tsup.config.ts +++ b/tsup.config.ts @@ -5,7 +5,7 @@ export default defineConfig({ clean: true, dts: true, entry: [ - 'src/main.ts' + 'src/webvsc.ts' ], external: [ 'log-symbols',