From 5a921994cf215de85a96a1a5217f95d4abcfe62b Mon Sep 17 00:00:00 2001 From: Jos de Jong Date: Wed, 1 Mar 2023 14:03:30 +0100 Subject: [PATCH] chore: move tools utils into a `utils` folder --- tools/createVanillaPackageJson.js | 4 ++-- tools/postprocessVanillaTypes.js | 2 +- tools/{ => utils}/getAbsolutePath.mjs | 0 tools/{ => utils}/getFilesRecursively.js | 0 4 files changed, 3 insertions(+), 3 deletions(-) rename tools/{ => utils}/getAbsolutePath.mjs (100%) rename tools/{ => utils}/getFilesRecursively.js (100%) diff --git a/tools/createVanillaPackageJson.js b/tools/createVanillaPackageJson.js index 7ecc39ca..a28c1c0b 100644 --- a/tools/createVanillaPackageJson.js +++ b/tools/createVanillaPackageJson.js @@ -2,8 +2,8 @@ import path from 'path' import { readFileSync, writeFileSync } from 'fs' -import { getAbsolutePath } from './getAbsolutePath.mjs' -import { getFilesRecursively } from './getFilesRecursively.js' +import { getAbsolutePath } from './utils/getAbsolutePath.mjs' +import { getFilesRecursively } from './utils/getFilesRecursively.js' const vanillaPackageFolder = getAbsolutePath(import.meta.url, '..', 'package-vanilla') diff --git a/tools/postprocessVanillaTypes.js b/tools/postprocessVanillaTypes.js index 5ee96137..e39baaed 100644 --- a/tools/postprocessVanillaTypes.js +++ b/tools/postprocessVanillaTypes.js @@ -1,5 +1,5 @@ import { readFileSync, writeFileSync } from 'fs' -import { getAbsolutePath } from './getAbsolutePath.mjs' +import { getAbsolutePath } from './utils/getAbsolutePath.mjs' const declareModuleSection = `declare module '*.svelte' { export { SvelteComponentDev as default } from 'svelte/internal'; diff --git a/tools/getAbsolutePath.mjs b/tools/utils/getAbsolutePath.mjs similarity index 100% rename from tools/getAbsolutePath.mjs rename to tools/utils/getAbsolutePath.mjs diff --git a/tools/getFilesRecursively.js b/tools/utils/getFilesRecursively.js similarity index 100% rename from tools/getFilesRecursively.js rename to tools/utils/getFilesRecursively.js