Skip to content

Commit

Permalink
added some helpers & couple of omitted tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pietersartain committed Dec 5, 2023
1 parent 03fb02a commit 3c2335d
Show file tree
Hide file tree
Showing 13 changed files with 336 additions and 119 deletions.
5 changes: 5 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"tabWidth": 4,
"useTabs": false,
"printWidth": 240
}
9 changes: 9 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
// See https://go.microsoft.com/fwlink/?LinkId=827846 to learn about workspace recommendations.
// Extension identifier format: ${publisher}.${name}. Example: vscode.csharp

// List of extensions which should be recommended for users of this workspace.
"recommendations": ["dbaeumer.vscode-eslint", "esbenp.prettier-vscode"],
// List of extensions recommended by VS Code that should not be recommended for users of this workspace.
"unwantedRecommendations": []
}
15 changes: 15 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"[javascript]": {
// js
"editor.formatOnSave": true,
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.autoClosingBrackets": "beforeWhitespace"
},
"[typescript]": {
// ts
"editor.formatOnSave": true,
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.autoClosingBrackets": "beforeWhitespace"
},
"typescript.tsdk": "node_modules\\typescript\\lib"
}
File renamed without changes.
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
"main": "dist/index.js",
"module": "dist/index.mjs",
"types": "dist/index.d.ts",
"files": ["./dist"],
"files": [
"./dist"
],
"scripts": {
"build": "tsup src/index.ts --format cjs,esm --dts --no-splitting",
"clean": "rm -rf dist",
Expand All @@ -18,7 +20,9 @@
"license": "ISC",
"devDependencies": {
"@types/jest": "^29.5.10",
"@types/node": "^20.10.3",
"jest": "^29.7.0",
"path": "^0.12.7",
"ts-jest": "^29.1.1",
"tsup": "^8.0.1",
"typescript": "^5.3.2"
Expand Down
88 changes: 58 additions & 30 deletions pnpm-lock.yaml

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

3 changes: 3 additions & 0 deletions src/errors.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export const Err = {
INCOMPLETE: "Incomplete populate dataset",
};
3 changes: 3 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
export * from "./tree";
export * from "./sortedtree";
import * as treeutil from "./pathhelpers";

export { treeutil };
Loading

0 comments on commit 3c2335d

Please sign in to comment.