testeranto 0.79.34 → 0.79.36

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "testeranto",
3
3
  "description": "teeny tiny tightly-typed typescript tests",
4
- "version": "0.79.34",
4
+ "version": "0.79.36",
5
5
  "engines": {
6
6
  "node": "18.18.0"
7
7
  },
@@ -133,6 +133,10 @@
133
133
  "import": "./src/Node.ts",
134
134
  "require": "./src/Node.ts"
135
135
  },
136
+ "./src/Puppeteer": {
137
+ "import": "./dist/module/Puppeteer.js",
138
+ "require": "./dist/common/Puppeteer.js"
139
+ },
136
140
  "./src/TaskManBackEnd": {
137
141
  "import": "./dist/module/TaskManBackEnd.js",
138
142
  "require": "./dist/common/TaskManBackEnd.js"
@@ -245,4 +249,4 @@
245
249
  "uuid": "^10.0.0",
246
250
  "ws": "^8.16.0"
247
251
  }
248
- }
252
+ }
package/src/Puppeteer.ts CHANGED
@@ -25,10 +25,21 @@ process.stdin.on("keypress", (str, key) => {
25
25
  }
26
26
  });
27
27
 
28
- const main = async () => {
29
- const configs = jsonc.parse(
30
- (await fs.readFileSync("./docs/testeranto.json")).toString()
31
- ) as IBuiltConfig;
28
+ export default async (configs) => {
29
+ fs.writeFileSync(
30
+ `${configs.outdir}/testeranto.json`,
31
+ JSON.stringify(
32
+ {
33
+ ...configs,
34
+ buildDir: process.cwd() + "/" + configs.outdir,
35
+ },
36
+ null,
37
+ 2
38
+ )
39
+ );
40
+ // const configs = jsonc.parse(
41
+ // (await fs.readFileSync("./docs/testeranto.json")).toString()
42
+ // ) as IBuiltConfig;
32
43
 
33
44
  const pm = new PM_Main(configs);
34
45
 
@@ -126,5 +137,3 @@ const main = async () => {
126
137
  }
127
138
  );
128
139
  };
129
-
130
- main();