Skip to content
This repository has been archived by the owner on Nov 23, 2023. It is now read-only.

Commit

Permalink
Fix CJS JS file extension in dist folder
Browse files Browse the repository at this point in the history
  • Loading branch information
4lm committed Sep 29, 2023
1 parent 13531be commit 325d606
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 7 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.4.1] - 2023-09-29

## Fixed

- Fix CJS JS file extension in dist folder

## [0.4.0] - 2023-09-29

## Added
Expand Down
2 changes: 1 addition & 1 deletion example/button/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"preview": "vite preview"
},
"dependencies": {
"@destacks/tc": "^0.4.0",
"@destacks/tc": "^0.4.1",
"autoprefixer": "^10.4.16",
"clsx": "^2.0.0",
"postcss": "^8.4.30",
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
{
"name": "@destacks/tc",
"version": "0.4.0",
"version": "0.4.1",
"description": "Hassle-Free Merging & Sorting of Tailwind Classes",
"type": "module",
"main": "./dist/cjs/tc.js",
"main": "./dist/cjs/tc.cjs",
"module": "./dist/esm/tc.js",
"types": "./dist/cjs/tc.d.ts",
"scripts": {
"prebuild": "rimraf dist/",
"build:cjs": "tsc -p tsconfig.cjs.json",
"build:cjs": "tsc -p tsconfig.cjs.json && mv dist/cjs/tc.js dist/cjs/tc.cjs",
"build:esm": "tsc -p tsconfig.esm.json",
"build": "npm run build:cjs && npm run build:esm && npm run postbuild",
"postbuild": "terser dist/cjs/tc.js -o dist/cjs/tc.js && terser dist/esm/tc.js -o dist/esm/tc.js && rimraf dist/esm/tc.d.ts",
"postbuild": "terser dist/cjs/tc.cjs -o dist/cjs/tc.cjs && terser dist/esm/tc.js -o dist/esm/tc.js && rimraf dist/esm/tc.d.ts",
"lint": "eslint 'src/**/*.{ts,tsx}'",
"lint:fix": "eslint 'src/**/*.{ts,tsx}' --fix",
"pretest": "npm run build",
Expand Down

0 comments on commit 325d606

Please sign in to comment.