Skip to content

Commit

Permalink
Update to resolve Can Not Find File MJS error
Browse files Browse the repository at this point in the history
  • Loading branch information
Christopher Vachon committed Oct 7, 2022
1 parent 82c8f87 commit 7f0dea0
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ jobs:
node-version: ${{ matrix.node-version }}

- run: pnpm install
- run: pnpm run test
- run: pnpm run test:coverage
18 changes: 17 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,22 @@
# @codevachon/classnames

A Library Used for managing ClassNames in Javascript
A Library Used for managing ClassNames in Javascript.

Checkout the [TypeDoc](https://codevachon.github.io/classnames/).

## Install

```sh
pnpm add @codevachon/classnames
```

```sh
yarn add @codevachon/classnames
```

```sh
npm install @codevachon/classnames
```

## Usage

Expand Down
2 changes: 1 addition & 1 deletion config/tsconfig.base.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@
"declarationMap": true,
"allowSyntheticDefaultImports": true
},
"files": ["../src/index.ts"]
"files": ["../src/ClassNames.ts"]
}
21 changes: 11 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@codevachon/classnames",
"version": "1.0.0",
"version": "1.0.1",
"license": "MIT",
"author": {
"email": "[email protected]",
Expand All @@ -9,12 +9,13 @@
},
"scripts": {
"test": "jest",
"test:coverage": "jest --coverage",
"clean": "rm -rf ./lib ./docs",
"build": "npm run clean && npm run build:esm && npm run build:cjs",
"build:esm": "tsc -p ./config/tsconfig.esm.json && mv lib/esm/index.js lib/esm/index.mjs",
"build:esm": "tsc -p ./config/tsconfig.esm.json && mv lib/esm/ClassNames.js lib/esm/ClassNames.mjs",
"build:cjs": "tsc -p ./config/tsconfig.cjs.json",
"prepack": "npm run build",
"build:docs": "rm -fr docs && typedoc src/index.ts",
"build:docs": "rm -fr docs && typedoc src/ClassNames.ts",
"serve:docs": "http-server ./docs",
"preinstall": "npx only-allow pnpm"
},
Expand All @@ -26,28 +27,28 @@
"type": "git",
"url": "[email protected]:CodeVachon/classnames.git"
},
"types": "./lib/cjs/types/index.d.ts",
"main": "./lib/cjs/index.js",
"types": "./lib/cjs/types/ClassNames.d.ts",
"main": "./lib/cjs/ClassNames.js",
"files": [
"lib/**/*"
],
"exports": {
".": {
"import": {
"types": "./lib/esm/types/index.d.ts",
"default": "./lib/esm/index.mjs"
"types": "./lib/esm/types/ClassNames.d.ts",
"default": "./lib/esm/ClassNames.mjs"
},
"require": {
"types": "./lib/cjs/types/index.d.ts",
"default": "./lib/cjs/index.js"
"types": "./lib/cjs/types/ClassNames.d.ts",
"default": "./lib/cjs/ClassNames.js"
}
}
},
"publishConfig": {
"access": "public"
},
"engines": {
"node": ">=12"
"node": ">=16"
},
"keywords": [
"className"
Expand Down
1 change: 0 additions & 1 deletion src/index.ts

This file was deleted.

0 comments on commit 7f0dea0

Please sign in to comment.