wechat-mp-controller 0.0.2 → 0.0.3
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.js +1 -1
- package/package.json +15 -17
package/dist/index.js
CHANGED
|
@@ -16,7 +16,7 @@ export class Controller {
|
|
|
16
16
|
args: ['--start-maximized'],
|
|
17
17
|
channel: 'chrome',
|
|
18
18
|
headless: options?.headless,
|
|
19
|
-
userDataDir: './.
|
|
19
|
+
userDataDir: './.wmpc-cache'
|
|
20
20
|
});
|
|
21
21
|
this.page = await this.browser.newPage();
|
|
22
22
|
await this.page.goto(`https://mp.weixin.qq.com/`);
|
package/package.json
CHANGED
|
@@ -1,26 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wechat-mp-controller",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.3",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"main": "./dist/index.js",
|
|
8
8
|
"types": "./dist/index.d.ts",
|
|
9
|
-
"scripts": {
|
|
10
|
-
"build:clean": "rm -rf ./dist",
|
|
11
|
-
"build:gulp": "gulp",
|
|
12
|
-
"build": "pnpm build:clean && pnpm build:gulp",
|
|
13
|
-
"start": "watch 'pnpm build' src",
|
|
14
|
-
"commitlint": "commitlint --edit",
|
|
15
|
-
"lint": "eslint --ext .js,.ts --max-warnings 0 \"./\" ",
|
|
16
|
-
"tsc": "tsc -p ./tsconfig.json --noEmit",
|
|
17
|
-
"commit": "git-cz",
|
|
18
|
-
"lint-staged": "lint-staged",
|
|
19
|
-
"prepare": "husky",
|
|
20
|
-
"exec:ts-node": "node --disable-warning=ExperimentalWarning --es-module-specifier-resolution=node --loader ts-node/esm",
|
|
21
|
-
"release": "pnpm exec:ts-node \"./scripts/release.ts\"",
|
|
22
|
-
"prepublishOnly": "pnpm build && pnpm exec:ts-node \"./scripts/publish.ts\""
|
|
23
|
-
},
|
|
24
9
|
"files": [
|
|
25
10
|
"dist",
|
|
26
11
|
"package.json",
|
|
@@ -72,5 +57,18 @@
|
|
|
72
57
|
"commitizen": {
|
|
73
58
|
"path": "node_modules/cz-git"
|
|
74
59
|
}
|
|
60
|
+
},
|
|
61
|
+
"scripts": {
|
|
62
|
+
"build:clean": "rm -rf ./dist",
|
|
63
|
+
"build:gulp": "gulp",
|
|
64
|
+
"build": "pnpm build:clean && pnpm build:gulp",
|
|
65
|
+
"start": "watch 'pnpm build' src",
|
|
66
|
+
"commitlint": "commitlint --edit",
|
|
67
|
+
"lint": "eslint --ext .js,.ts --max-warnings 0 \"./\" ",
|
|
68
|
+
"tsc": "tsc -p ./tsconfig.json --noEmit",
|
|
69
|
+
"commit": "git-cz",
|
|
70
|
+
"lint-staged": "lint-staged",
|
|
71
|
+
"exec:ts-node": "node --disable-warning=ExperimentalWarning --es-module-specifier-resolution=node --loader ts-node/esm",
|
|
72
|
+
"release": "pnpm exec:ts-node \"./scripts/release.ts\""
|
|
75
73
|
}
|
|
76
|
-
}
|
|
74
|
+
}
|