Skip to content

Commit

Permalink
Fix TS imports in bundle [publish]
Browse files Browse the repository at this point in the history
  • Loading branch information
ArnaudBarre committed May 1, 2023
1 parent 4b7ff27 commit f7bf2bc
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 10 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Expand Up @@ -2,6 +2,10 @@

## Unreleased

## 0.5.1

Fix TS imports in bundle

## 0.5.0

Align with Tailwind 3.3:
Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,7 +1,7 @@
{
"name": "@arnaud-barre/downwind",
"description": "A PostCSS-less implementation of Tailwind based on Lightning CSS",
"version": "0.5.0",
"version": "0.5.1",
"author": "Arnaud Barré (https://github.com/ArnaudBarre)",
"license": "MIT",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion scripts/bundle.ts
Expand Up @@ -46,7 +46,7 @@ Promise.all([
`const {${specifiers.replaceAll(
" as ",
": ",
)}} = require("${from}");`,
)}} = require("${from.replace(".ts", ".js")}");`,
)
.replace(`export { ${tool}Plugin as downwind };\n`, "")
.concat(`module.exports.downwind = ${tool}Plugin;\n`),
Expand Down
2 changes: 1 addition & 1 deletion src/cli.ts
Expand Up @@ -33,7 +33,7 @@ if (!output) {
}

/* eslint-disable @typescript-eslint/no-require-imports */
require("./index.ts")
require("./index.js")
.initDownwind()
.then((downwind: Downwind) => {
const { writeFileSync, existsSync, mkdirSync } =
Expand Down
14 changes: 7 additions & 7 deletions tests/run-tests.ts
Expand Up @@ -9,10 +9,10 @@ declare global {
(globalThis as any).__VERSION__ = "test";

/* eslint-disable @typescript-eslint/no-require-imports */
require("./generate.test");
require("./preTransform.test");
require("./convertTargets.test");
require("./cssModuleToJS.test");
require("./codegen.test");
require("./esbuildPlugin.test");
require("./vitePlugin.test");
require("./generate.test.ts");
require("./preTransform.test.ts");
require("./convertTargets.test.ts");
require("./cssModuleToJS.test.ts");
require("./codegen.test.ts");
require("./esbuildPlugin.test.ts");
require("./vitePlugin.test.ts");

0 comments on commit f7bf2bc

Please sign in to comment.