-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Enable ESM * fix eslint under win32 * 0.29.1
- Loading branch information
Showing
46 changed files
with
807 additions
and
766 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -87,7 +87,9 @@ We use [stealth](https://www.npmjs.com/package/puppeteer-extra-plugin-stealth) t | |
|
||
## HISTORY | ||
|
||
### master | ||
### master v0.29 | ||
|
||
1. ESM support. | ||
|
||
### v0.28 (Apr 13, 2021) | ||
|
||
|
@@ -132,14 +134,15 @@ See: <https://github.com/wechaty/wechaty/issues/1152> | |
|
||
## AUTHOR | ||
|
||
[Huan LI](http://linkedin.com/in/zixia) \<[email protected]\> | ||
[Huan LI](http://linkedin.com/in/zixia) Tencent TVP of Chatbot \<[email protected]\> | ||
|
||
<!-- markdownlint-disable MD033 --> | ||
<a href="https://stackexchange.com/users/265499"> | ||
<img src="https://stackexchange.com/users/flair/265499.png" width="208" height="58" alt="profile for zixia on Stack Exchange, a network of free, community-driven Q&A sites" title="profile for zixia on Stack Exchange, a network of free, community-driven Q&A sites"> | ||
</a> | ||
|
||
## COPYRIGHT & LICENSE | ||
|
||
- Code & Docs © 2016-2019 Huan LI \<[email protected]\> | ||
- Code & Docs © 2016-now Huan LI \<[email protected]\> | ||
- Code released under the Apache-2.0 License | ||
- Docs released under Creative Commons |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export declare const codeRoot: string |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
const path = require('path') | ||
|
||
const codeRoot = path.join( | ||
__dirname, | ||
'..', | ||
) | ||
|
||
module.exports = { | ||
codeRoot, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/usr/bin/env -S ts-node --project tsconfig.cjs.json | ||
|
||
import { test } from 'tstest' | ||
|
||
import { codeRoot } from './code-root' | ||
|
||
test('CJS: codeRoot()', async t => { | ||
t.ok(codeRoot, 'should exist codeRoot') | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{ "type": "commonjs" } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/usr/bin/env bash | ||
set -e | ||
|
||
SRC_PACKAGE_JSON_TS_FILE='src/package-json.ts' | ||
|
||
[ -f ${SRC_PACKAGE_JSON_TS_FILE} ] || { | ||
echo ${SRC_PACKAGE_JSON_TS_FILE}" not found" | ||
exit 1 | ||
} | ||
|
||
cat <<_SRC_ > ${SRC_PACKAGE_JSON_TS_FILE} | ||
/** | ||
* This file was auto generated from scripts/generate-version.sh | ||
*/ | ||
import type { PackageJson } from 'type-fest' | ||
export const packageJson: PackageJson = $(cat package.json) as any | ||
_SRC_ |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.