Skip to content

Commit

Permalink
ecma and cjs interop fixed, types def bug fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
darsan-in committed May 18, 2024
1 parent 047e963 commit 2d526b6
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 21 deletions.
20 changes: 7 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,41 +3,35 @@
"displayName": "Richie JS",
"exports": {
"import": "./dist/richie.js",
"require": "./dist/richie.js"
"require": "./dist/richie.js",
"types": "./dist/types/richie.d.ts"
},
"description": "Rich Result Generator",
"version": "1.0.2",
"version": "1.0.3",
"main": "./dist/richie.js",
"types": "./dist/types/",
"files": [
"dist",
"intellisense"
],
"directories": {
"lib": "./dist/lib"
},
"dist": {
"shasum": "not added"
},
"icon": "not added",
"engines": {
"node": ">=21.7.3",
"npm": ">=10.5.0"
},
"engineStrict": false,
"preferGlobal": true,
"bin": {
"rjs": "./dist/lib/schemaWriter.js"
},
"scripts": {
"dev": "rimraf dist && tsc -p tscdev.json",
"build": "rimraf dist && tsc -b",
"watch": "tsc --watch",
"br": "cls && yarn dev && node ./dist/richie.js",
"dr": "cls && yarn dev && node ./dist/richie.js",
"rp": "node ./dist/richie.js",
"clean": "cls && rimraf dist",
"bt": "cls && yarn dev && jest",
"test": "jest",
"build": "cls && rimraf dist && tsc -p tsconfig.json",
"watch": "tsc --watch",
"clean": "cls && rimraf dist",
"deploy": "yarn build && yarn publish --access public && git push"
},
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion richie.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ const functionMap: Record<richies, richieOPS> = {
},
};

export default async function richie(
export async function richie(
richieName: richies,
filepath: string,
destinationPath: string = "",
Expand Down
2 changes: 1 addition & 1 deletion test/main.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { rmSync, existsSync } from "fs";
import { mkdirpSync } from "mkdirp";
import { basename, join } from "path";
import { richies, testProps } from "../lib/options";
import richie from "../richie";
import { richie } from "../richie";

const opfolder = "./test/outputs";
let iterN = 0;
Expand Down
13 changes: 7 additions & 6 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"compilerOptions": {
"target": "ES2022",
"module": "CommonJS",
"moduleResolution": "Node10",
"target": "ESNext",
"module": "NodeNext",
"moduleResolution": "NodeNext",
"baseUrl": ".",
"rootDir": ".",
"outDir": "dist",
Expand Down Expand Up @@ -33,7 +33,8 @@
"removeComments": true
},
"exclude": [
"node_modules"

"node_modules",
"test",
"jest.config.ts"
]
}
}

0 comments on commit 2d526b6

Please sign in to comment.