From 5918c5330db21afbdf07c26351e252239aff7796 Mon Sep 17 00:00:00 2001 From: Romain Lenzotti Date: Tue, 24 Sep 2024 20:31:08 +0200 Subject: [PATCH] fix(barrels): fix package.json configuration to bundle file in package --- packages/barrels/bin/barrels.js | 4 ++-- packages/barrels/{src => bin}/generate-barrel.js | 0 packages/barrels/{src => bin}/get-config.js | 0 packages/barrels/package.json | 1 - packages/barrels/test/barrels.integration.spec.js | 2 +- 5 files changed, 3 insertions(+), 4 deletions(-) rename packages/barrels/{src => bin}/generate-barrel.js (100%) rename packages/barrels/{src => bin}/get-config.js (100%) diff --git a/packages/barrels/bin/barrels.js b/packages/barrels/bin/barrels.js index a7016cae0..ab100cb64 100755 --- a/packages/barrels/bin/barrels.js +++ b/packages/barrels/bin/barrels.js @@ -1,6 +1,6 @@ #!/usr/bin/env node -import {generateBarrels} from "../src/generate-barrel.js"; -import {getConfig} from "../src/get-config.js"; +import {generateBarrels} from "./generate-barrel.js"; +import {getConfig} from "./get-config.js"; async function build() { const { diff --git a/packages/barrels/src/generate-barrel.js b/packages/barrels/bin/generate-barrel.js similarity index 100% rename from packages/barrels/src/generate-barrel.js rename to packages/barrels/bin/generate-barrel.js diff --git a/packages/barrels/src/get-config.js b/packages/barrels/bin/get-config.js similarity index 100% rename from packages/barrels/src/get-config.js rename to packages/barrels/bin/get-config.js diff --git a/packages/barrels/package.json b/packages/barrels/package.json index ccd93bbf6..3bd1d229d 100644 --- a/packages/barrels/package.json +++ b/packages/barrels/package.json @@ -4,7 +4,6 @@ "version": "5.4.2", "type": "module", "bin": "bin/barrels.js", - "files": [], "keywords": [ "Ts.ED", "barrels" diff --git a/packages/barrels/test/barrels.integration.spec.js b/packages/barrels/test/barrels.integration.spec.js index 12aff79fb..a862c361c 100644 --- a/packages/barrels/test/barrels.integration.spec.js +++ b/packages/barrels/test/barrels.integration.spec.js @@ -1,4 +1,4 @@ -import {generateBarrels} from "../src/generate-barrel.js"; +import {generateBarrels} from "../bin/generate-barrel.js"; import {describe, it} from "node:test"; import assert from "node:assert"; import {join} from "node:path";