@infrascan/fs-connector 0.2.3 → 0.3.0

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/dist/index.d.mts CHANGED
@@ -23,4 +23,4 @@ declare const DEFAULT_CONFIG: Required<FsResolverConfig>;
23
23
  */
24
24
  declare function buildFsConnector(basePath: string, config?: FsResolverConfig): Connector;
25
25
 
26
- export { DEFAULT_CONFIG, FsResolverConfig, buildFsConnector as default };
26
+ export { DEFAULT_CONFIG, type FsResolverConfig, buildFsConnector as default };
package/dist/index.d.ts CHANGED
@@ -23,4 +23,4 @@ declare const DEFAULT_CONFIG: Required<FsResolverConfig>;
23
23
  */
24
24
  declare function buildFsConnector(basePath: string, config?: FsResolverConfig): Connector;
25
25
 
26
- export { DEFAULT_CONFIG, FsResolverConfig, buildFsConnector as default };
26
+ export { DEFAULT_CONFIG, type FsResolverConfig, buildFsConnector as default };
package/dist/index.js CHANGED
@@ -17,13 +17,13 @@ var __copyProps = (to, from, except, desc) => {
17
17
  };
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
19
 
20
- // index.ts
21
- var fs_connector_exports = {};
22
- __export(fs_connector_exports, {
20
+ // src/index.ts
21
+ var index_exports = {};
22
+ __export(index_exports, {
23
23
  DEFAULT_CONFIG: () => DEFAULT_CONFIG,
24
24
  default: () => buildFsConnector
25
25
  });
26
- module.exports = __toCommonJS(fs_connector_exports);
26
+ module.exports = __toCommonJS(index_exports);
27
27
  var import_fs = require("fs");
28
28
  var import_promises = require("fs/promises");
29
29
  var import_path = require("path");
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- // index.ts
1
+ // src/index.ts
2
2
  import { existsSync } from "fs";
3
3
  import { mkdir, readFile, readdir, writeFile } from "fs/promises";
4
4
  import { join, resolve } from "path";
package/package.json CHANGED
@@ -1,40 +1,26 @@
1
1
  {
2
2
  "name": "@infrascan/fs-connector",
3
- "version": "0.2.3",
3
+ "version": "0.3.0",
4
4
  "description": "Connector for the Infrascan SDK to read and write state to the local filesystem",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
7
7
  "types": "dist/index.d.ts",
8
+ "source": "src/index.ts",
8
9
  "exports": {
9
10
  ".": {
10
11
  "require": "./dist/index.js",
11
- "import": "./dist/index.mjs",
12
- "types": "./dist/index.d.ts"
12
+ "import": "./dist/index.mjs"
13
13
  }
14
14
  },
15
15
  "files": [
16
16
  "dist"
17
17
  ],
18
18
  "scripts": {
19
- "build": "rm -rf dist ; tsup",
20
- "prepublish": "rm -rf dist ; tsup",
19
+ "build": "rm -rf dist ; tsup --config internal/tsconfig/tsup.json",
20
+ "prepublish": "rm -rf dist ; tsup --config internal/tsconfig/tsup.json",
21
21
  "lint": "tsc --noEmit ; eslint .",
22
22
  "clean": "rm -rf dist node_modules"
23
23
  },
24
- "tsup": {
25
- "clean": true,
26
- "cjsInterop": true,
27
- "splitting": false,
28
- "dts": true,
29
- "entry": [
30
- "index.ts"
31
- ],
32
- "format": [
33
- "esm",
34
- "cjs"
35
- ],
36
- "target": "node18"
37
- },
38
24
  "keywords": [
39
25
  "AWS",
40
26
  "Infrastructure Diagram",
@@ -45,7 +31,7 @@
45
31
  "author": "Liam Farrelly <liam@l3f7.dev> (https://whoisli.am/)",
46
32
  "license": "MPL-2.0",
47
33
  "devDependencies": {
48
- "@infrascan/shared-types": "^0.2.2",
34
+ "@infrascan/shared-types": "^0.6.0",
49
35
  "eslint-config-custom": "*",
50
36
  "tsconfig": "*",
51
37
  "typescript": "^5.1.6"