@sprucelabs/esm-postbuild 5.0.200 → 6.0.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.
@@ -28,7 +28,7 @@ if (require.main === module) {
28
28
  }
29
29
  function isDir(path) {
30
30
  try {
31
- let stat = fs_1.default.lstatSync(path);
31
+ const stat = fs_1.default.lstatSync(path);
32
32
  return stat.isDirectory();
33
33
  }
34
34
  catch (e) {
@@ -40,7 +40,7 @@ function postbuild() {
40
40
  }
41
41
  exports.postbuild = postbuild;
42
42
  function substituteImports(stringIn, filepath) {
43
- let result = `${stringIn}`.replace(/(from |require\()['"]((.*?))['"]/gi, (_, requireOrImport, moduleOrPath) => {
43
+ const result = `${stringIn}`.replace(/(from |require\()['"]((.*?))['"]/gi, (_, requireOrImport, moduleOrPath) => {
44
44
  // if it starts with a . its a locaal path
45
45
  if (moduleOrPath[0] == '.') {
46
46
  if (filepath) {
@@ -73,8 +73,8 @@ function substituteImports(stringIn, filepath) {
73
73
  }
74
74
  exports.substituteImports = substituteImports;
75
75
  function loadSubstitueWrite(file) {
76
- let contents = fs_1.default.readFileSync(file).toString();
77
- let results = substituteImports(contents, file);
76
+ const contents = fs_1.default.readFileSync(file).toString();
77
+ const results = substituteImports(contents, file);
78
78
  if (contents != results) {
79
79
  fs_1.default.writeFileSync(file, results);
80
80
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sprucelabs/esm-postbuild",
3
- "version": "5.0.200",
3
+ "version": "6.0.0",
4
4
  "description": "Script to do thins after build of esm modules",
5
5
  "main": "build/esm-postbuild.js",
6
6
  "repository": "git@github.com:sprucelabsai-community/esm-postbuild.git",
@@ -12,6 +12,7 @@
12
12
  "@sprucelabs/resolve-path-aliases",
13
13
  "@sprucelabs/spruce-test-fixtures",
14
14
  "@sprucelabs/test-utils",
15
+ "@sprucelabs/jest-json-reporter",
15
16
  "chalk"
16
17
  ]
17
18
  },
@@ -56,16 +57,14 @@
56
57
  "yargs": "^17.7.2"
57
58
  },
58
59
  "devDependencies": {
59
- "@sprucelabs/jest-json-reporter": "^7.0.207",
60
- "@sprucelabs/jest-sheets-reporter": "^3.0.26",
61
- "@sprucelabs/semantic-release": "^4.0.8",
62
- "@sprucelabs/test": "^8.0.50",
60
+ "@sprucelabs/semantic-release": "^5.0.0",
61
+ "@sprucelabs/test": "^8.0.51",
63
62
  "@types/fs-extra": "^11.0.4",
64
- "@types/node": "^20.12.4",
63
+ "@types/node": "^20.12.7",
65
64
  "chokidar-cli": "^3.0.0",
66
65
  "concurrently": "^8.2.2",
67
- "eslint": "^8.57.0",
68
- "eslint-config-spruce": "^10.13.6",
66
+ "eslint": "^9.0.0",
67
+ "eslint-config-spruce": "^11.1.1",
69
68
  "fs-extra": "^11.2.0",
70
69
  "jest": "^29.7.0",
71
70
  "jest-circus": "^29.7.0",
@@ -73,24 +72,11 @@
73
72
  "ts-node": "^10.9.2",
74
73
  "tsc-watch": "^6.2.0",
75
74
  "tsconfig-paths": "^4.2.0",
76
- "typescript": "^5.4.4"
75
+ "typescript": "^5.4.5"
77
76
  },
78
77
  "jest": {
79
78
  "maxWorkers": 4,
80
79
  "testTimeout": 120000,
81
- "reporters": [
82
- "default",
83
- [
84
- "@sprucelabs/jest-sheets-reporter",
85
- {
86
- "sheetId": "1DoWM7mYgGDa-PJXptLomrZmbIBZiuxS1YiAsRXU2Gm0",
87
- "worksheetId": 843037832,
88
- "testMap": {
89
- "canRunfromCommandLine": "I31"
90
- }
91
- }
92
- ]
93
- ],
94
80
  "testEnvironment": "node",
95
81
  "testPathIgnorePatterns": [
96
82
  "<rootDir>/tmp/",