@k4a_l/dirtreeist 0.2.0 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,7 +1,23 @@
1
1
  # DirTreeist
2
+
2
3
  Create a directory Structure Diagram from a markdown lists.
3
4
 
5
+ ## Installation
6
+
7
+ #### tarn
8
+
9
+ ```shell
10
+ yarn add @k4a_l/dirtreeist
11
+ ```
12
+
13
+ ### npm
14
+
15
+ ```shell
16
+ npm install @k4a_l/dirtreeist
17
+ ```
18
+
4
19
  ## Example
20
+
5
21
  ### Input
6
22
 
7
23
  ```markdown
@@ -1,4 +1,4 @@
1
- import { symbolSets, defaultOptions } from 'constants/constant';
1
+ import { symbolSets, defaultOptions } from '../constants/constant';
2
2
  import { buildOption } from './options';
3
3
  const makeSymbol = (symbolSet, isLast) => {
4
4
  if (isLast)
@@ -1,4 +1,4 @@
1
- import { defaultOptions } from 'constants/constant';
1
+ import { defaultOptions } from '../constants/constant';
2
2
  const pickOption = (option, defaultOption, key) => {
3
3
  if (option === undefined)
4
4
  return defaultOptions[key];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@k4a_l/dirtreeist",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "main": "dist/index.js",
5
5
  "exports": {
6
6
  "import": "./dist/index.js",
@@ -13,7 +13,7 @@
13
13
  "scripts": {
14
14
  "dev": "vite",
15
15
  "clean": "rm -rf ./dist/ ",
16
- "build:esm": "tsc",
16
+ "build:esm": "tsc -p tsconfig.json && tsc-alias -p tsconfig.json",
17
17
  "build:cjs": "rollup -c rollup.config.js",
18
18
  "build": "yarn clean && yarn build:esm && yarn build:cjs",
19
19
  "test": "vitest",
@@ -35,6 +35,7 @@
35
35
  "rollup": "^2.79.0",
36
36
  "ts-jest": "^28.0.8",
37
37
  "ts-node-dev": "^2.0.0",
38
+ "tsc-alias": "^1.7.0",
38
39
  "tslib": "^2.4.0",
39
40
  "typescript": "^4.8.2",
40
41
  "vite-tsconfig-paths": "^3.5.0",