From 9162fdda7d3b2af73296383e89ca39fbc470620c Mon Sep 17 00:00:00 2001 From: Simon Holthausen Date: Wed, 22 Nov 2023 10:39:14 +0100 Subject: [PATCH] rename stuff --- .../expected/Plain.svelte | 0 .../expected/Plain.svelte.d.ts | 0 .../expected/Test.svelte | 0 .../expected/Test.svelte.d.ts | 0 .../expected/Test2.svelte | 0 .../expected/Test2.svelte.d.ts | 0 .../{typescript => typescript-esnext}/expected/foo.d.ts | 0 .../{typescript => typescript-esnext}/expected/index.d.ts | 0 .../{typescript => typescript-esnext}/expected/index.js | 0 .../{typescript => typescript-esnext}/expected/utils.d.ts | 0 .../{typescript => typescript-esnext}/expected/utils.js | 0 .../{typescript => typescript-esnext}/package.json | 2 +- .../src/lib/Plain.svelte | 0 .../{typescript => typescript-esnext}/src/lib/Test.svelte | 0 .../src/lib/Test2.svelte | 0 .../{typescript => typescript-esnext}/src/lib/foo.d.ts | 0 .../{typescript => typescript-esnext}/src/lib/index.ts | 0 .../{typescript => typescript-esnext}/src/lib/utils.ts | 0 .../{typescript => typescript-esnext}/svelte.config.js | 0 .../{typescript => typescript-esnext}/tsconfig.json | 0 packages/package/test/index.js | 8 ++++---- 21 files changed, 5 insertions(+), 5 deletions(-) rename packages/package/test/fixtures/{typescript => typescript-esnext}/expected/Plain.svelte (100%) rename packages/package/test/fixtures/{typescript => typescript-esnext}/expected/Plain.svelte.d.ts (100%) rename packages/package/test/fixtures/{typescript => typescript-esnext}/expected/Test.svelte (100%) rename packages/package/test/fixtures/{typescript => typescript-esnext}/expected/Test.svelte.d.ts (100%) rename packages/package/test/fixtures/{typescript => typescript-esnext}/expected/Test2.svelte (100%) rename packages/package/test/fixtures/{typescript => typescript-esnext}/expected/Test2.svelte.d.ts (100%) rename packages/package/test/fixtures/{typescript => typescript-esnext}/expected/foo.d.ts (100%) rename packages/package/test/fixtures/{typescript => typescript-esnext}/expected/index.d.ts (100%) rename packages/package/test/fixtures/{typescript => typescript-esnext}/expected/index.js (100%) rename packages/package/test/fixtures/{typescript => typescript-esnext}/expected/utils.d.ts (100%) rename packages/package/test/fixtures/{typescript => typescript-esnext}/expected/utils.js (100%) rename packages/package/test/fixtures/{typescript => typescript-esnext}/package.json (81%) rename packages/package/test/fixtures/{typescript => typescript-esnext}/src/lib/Plain.svelte (100%) rename packages/package/test/fixtures/{typescript => typescript-esnext}/src/lib/Test.svelte (100%) rename packages/package/test/fixtures/{typescript => typescript-esnext}/src/lib/Test2.svelte (100%) rename packages/package/test/fixtures/{typescript => typescript-esnext}/src/lib/foo.d.ts (100%) rename packages/package/test/fixtures/{typescript => typescript-esnext}/src/lib/index.ts (100%) rename packages/package/test/fixtures/{typescript => typescript-esnext}/src/lib/utils.ts (100%) rename packages/package/test/fixtures/{typescript => typescript-esnext}/svelte.config.js (100%) rename packages/package/test/fixtures/{typescript => typescript-esnext}/tsconfig.json (100%) diff --git a/packages/package/test/fixtures/typescript/expected/Plain.svelte b/packages/package/test/fixtures/typescript-esnext/expected/Plain.svelte similarity index 100% rename from packages/package/test/fixtures/typescript/expected/Plain.svelte rename to packages/package/test/fixtures/typescript-esnext/expected/Plain.svelte diff --git a/packages/package/test/fixtures/typescript/expected/Plain.svelte.d.ts b/packages/package/test/fixtures/typescript-esnext/expected/Plain.svelte.d.ts similarity index 100% rename from packages/package/test/fixtures/typescript/expected/Plain.svelte.d.ts rename to packages/package/test/fixtures/typescript-esnext/expected/Plain.svelte.d.ts diff --git a/packages/package/test/fixtures/typescript/expected/Test.svelte b/packages/package/test/fixtures/typescript-esnext/expected/Test.svelte similarity index 100% rename from packages/package/test/fixtures/typescript/expected/Test.svelte rename to packages/package/test/fixtures/typescript-esnext/expected/Test.svelte diff --git a/packages/package/test/fixtures/typescript/expected/Test.svelte.d.ts b/packages/package/test/fixtures/typescript-esnext/expected/Test.svelte.d.ts similarity index 100% rename from packages/package/test/fixtures/typescript/expected/Test.svelte.d.ts rename to packages/package/test/fixtures/typescript-esnext/expected/Test.svelte.d.ts diff --git a/packages/package/test/fixtures/typescript/expected/Test2.svelte b/packages/package/test/fixtures/typescript-esnext/expected/Test2.svelte similarity index 100% rename from packages/package/test/fixtures/typescript/expected/Test2.svelte rename to packages/package/test/fixtures/typescript-esnext/expected/Test2.svelte diff --git a/packages/package/test/fixtures/typescript/expected/Test2.svelte.d.ts b/packages/package/test/fixtures/typescript-esnext/expected/Test2.svelte.d.ts similarity index 100% rename from packages/package/test/fixtures/typescript/expected/Test2.svelte.d.ts rename to packages/package/test/fixtures/typescript-esnext/expected/Test2.svelte.d.ts diff --git a/packages/package/test/fixtures/typescript/expected/foo.d.ts b/packages/package/test/fixtures/typescript-esnext/expected/foo.d.ts similarity index 100% rename from packages/package/test/fixtures/typescript/expected/foo.d.ts rename to packages/package/test/fixtures/typescript-esnext/expected/foo.d.ts diff --git a/packages/package/test/fixtures/typescript/expected/index.d.ts b/packages/package/test/fixtures/typescript-esnext/expected/index.d.ts similarity index 100% rename from packages/package/test/fixtures/typescript/expected/index.d.ts rename to packages/package/test/fixtures/typescript-esnext/expected/index.d.ts diff --git a/packages/package/test/fixtures/typescript/expected/index.js b/packages/package/test/fixtures/typescript-esnext/expected/index.js similarity index 100% rename from packages/package/test/fixtures/typescript/expected/index.js rename to packages/package/test/fixtures/typescript-esnext/expected/index.js diff --git a/packages/package/test/fixtures/typescript/expected/utils.d.ts b/packages/package/test/fixtures/typescript-esnext/expected/utils.d.ts similarity index 100% rename from packages/package/test/fixtures/typescript/expected/utils.d.ts rename to packages/package/test/fixtures/typescript-esnext/expected/utils.d.ts diff --git a/packages/package/test/fixtures/typescript/expected/utils.js b/packages/package/test/fixtures/typescript-esnext/expected/utils.js similarity index 100% rename from packages/package/test/fixtures/typescript/expected/utils.js rename to packages/package/test/fixtures/typescript-esnext/expected/utils.js diff --git a/packages/package/test/fixtures/typescript/package.json b/packages/package/test/fixtures/typescript-esnext/package.json similarity index 81% rename from packages/package/test/fixtures/typescript/package.json rename to packages/package/test/fixtures/typescript-esnext/package.json index 3d104f4558c7..6dac2ac90c18 100644 --- a/packages/package/test/fixtures/typescript/package.json +++ b/packages/package/test/fixtures/typescript-esnext/package.json @@ -2,7 +2,7 @@ "name": "typescript", "private": true, "version": "1.0.0", - "description": "standard typescript package", + "description": "typescript package using esnext", "type": "module", "peerDependencies": { "svelte": "^4.0.0" diff --git a/packages/package/test/fixtures/typescript/src/lib/Plain.svelte b/packages/package/test/fixtures/typescript-esnext/src/lib/Plain.svelte similarity index 100% rename from packages/package/test/fixtures/typescript/src/lib/Plain.svelte rename to packages/package/test/fixtures/typescript-esnext/src/lib/Plain.svelte diff --git a/packages/package/test/fixtures/typescript/src/lib/Test.svelte b/packages/package/test/fixtures/typescript-esnext/src/lib/Test.svelte similarity index 100% rename from packages/package/test/fixtures/typescript/src/lib/Test.svelte rename to packages/package/test/fixtures/typescript-esnext/src/lib/Test.svelte diff --git a/packages/package/test/fixtures/typescript/src/lib/Test2.svelte b/packages/package/test/fixtures/typescript-esnext/src/lib/Test2.svelte similarity index 100% rename from packages/package/test/fixtures/typescript/src/lib/Test2.svelte rename to packages/package/test/fixtures/typescript-esnext/src/lib/Test2.svelte diff --git a/packages/package/test/fixtures/typescript/src/lib/foo.d.ts b/packages/package/test/fixtures/typescript-esnext/src/lib/foo.d.ts similarity index 100% rename from packages/package/test/fixtures/typescript/src/lib/foo.d.ts rename to packages/package/test/fixtures/typescript-esnext/src/lib/foo.d.ts diff --git a/packages/package/test/fixtures/typescript/src/lib/index.ts b/packages/package/test/fixtures/typescript-esnext/src/lib/index.ts similarity index 100% rename from packages/package/test/fixtures/typescript/src/lib/index.ts rename to packages/package/test/fixtures/typescript-esnext/src/lib/index.ts diff --git a/packages/package/test/fixtures/typescript/src/lib/utils.ts b/packages/package/test/fixtures/typescript-esnext/src/lib/utils.ts similarity index 100% rename from packages/package/test/fixtures/typescript/src/lib/utils.ts rename to packages/package/test/fixtures/typescript-esnext/src/lib/utils.ts diff --git a/packages/package/test/fixtures/typescript/svelte.config.js b/packages/package/test/fixtures/typescript-esnext/svelte.config.js similarity index 100% rename from packages/package/test/fixtures/typescript/svelte.config.js rename to packages/package/test/fixtures/typescript-esnext/svelte.config.js diff --git a/packages/package/test/fixtures/typescript/tsconfig.json b/packages/package/test/fixtures/typescript-esnext/tsconfig.json similarity index 100% rename from packages/package/test/fixtures/typescript/tsconfig.json rename to packages/package/test/fixtures/typescript-esnext/tsconfig.json diff --git a/packages/package/test/index.js b/packages/package/test/index.js index 9996e4a48e02..ec323577817b 100644 --- a/packages/package/test/index.js +++ b/packages/package/test/index.js @@ -117,17 +117,17 @@ for (const dir of fs.readdirSync(join(__dirname, 'errors'))) { }); } -test('create standard package with javascript', async () => { +test('create package with javascript', async () => { // should also preserve filename casing // should also correctly handle nested folders await test_make_package('javascript'); }); -test('create standard package with typescript', async () => { - await test_make_package('typescript'); +test('create package with typescript using esnext', async () => { + await test_make_package('typescript-esnext'); }); -test('create standard package with typescript using nodenext', async () => { +test('create package with typescript using nodenext', async () => { await test_make_package('typescript-nodenext'); });