Skip to content
This repository was archived by the owner on Oct 16, 2024. It is now read-only.

Commit 3cdc61d

Browse files
committed
fixed typos
1 parent 4195a56 commit 3cdc61d

File tree

5 files changed

+49
-8
lines changed

5 files changed

+49
-8
lines changed

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@
5757
"@typescript-eslint/eslint-plugin": "^4.28.3",
5858
"@typescript-eslint/parser": "^4.28.3",
5959
"coveralls": "^3.1.1",
60+
"esbuild": "^0.12.28",
6061
"eslint": "^7.30.0",
6162
"eslint-config-node": "^4.1.0",
6263
"eslint-config-prettier": "^8.3.0",
@@ -70,6 +71,7 @@
7071
"prettier": "^2.3.2",
7172
"rollup": "^2.56.3",
7273
"rollup-plugin-esbuild": "^4.5.0",
74+
"shx": "^0.3.3",
7375
"size-limit": "^5.0.1",
7476
"ts-jest": "^26.5.6",
7577
"ts-node": "^10.1.0",

packages/core/package.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,12 @@
2727
"module": "dist/esm/index.js",
2828
"types": "dist/index.d.ts",
2929
"scripts": {
30-
"build": "yarn run build:cjs && yarn run build:esm",
30+
"build": "shx rm -rf dist && rollup -c",
3131
"prepare": "yarn run build",
32-
"build:esm": "tsc -p ./tsconfig.esm.json",
33-
"build:cjs": "tsc -p ./tsconfig.cjs.json",
3432
"dev:publish": "yalc publish",
3533
"dev:push": "yalc push",
3634
"watch:push": "tsc-watch --onSuccess \"yarn run dev:push\"",
37-
"watch": "tsc -w",
35+
"watch": "shx rm -rf dist && tsc -w",
3836
"release": "node ./scripts/prepublish.js && yarn run prepare",
3937
"release:manual": "yarn run prepare && yarn run release && npm publish && git checkout README.md",
4038
"pack": "npm pack",

packages/core/rollup.config.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ const fileExtensions = ['.js', '.ts', '.tsx'];
1010
const { root } = path.parse(process.cwd()); // https://nodejs.org/api/process.html#process_process_cwd
1111

1212
// https://rollupjs.org/guide/en/#warning-treating-module-as-external-dependency
13+
// Checks whether the specified id/path is outside the particular package (-> external)
1314
function external(id) {
1415
return !id.startsWith('.') && !id.startsWith(root);
1516
}
@@ -44,7 +45,11 @@ function createESMConfig(input, output) {
4445
input,
4546
output: { file: output, format: 'esm' },
4647
external,
47-
plugins: [resolve({ extensions: fileExtensions }), getEsbuild('node12')],
48+
plugins: [
49+
resolve({ extensions: fileExtensions }),
50+
getEsbuild('node12'),
51+
typescript(),
52+
],
4853
};
4954
}
5055

@@ -59,6 +64,7 @@ function createCommonJSConfig(input, output) {
5964
babelHelpers: 'bundled',
6065
comments: false,
6166
}),
67+
typescript(),
6268
],
6369
};
6470
}

packages/core/tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"extends": "../tsconfig.default.json",
33
"compilerOptions": {
44
"target": "esnext",
5+
"outDir": "dist",
56
"rootDir": "src"
67
},
78
"include": [

yarn.lock

Lines changed: 37 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8207,6 +8207,11 @@ es6-symbol@^3.1.1, es6-symbol@~3.1.3:
82078207
d "^1.0.1"
82088208
ext "^1.1.2"
82098209

8210+
esbuild@^0.12.28:
8211+
version "0.12.28"
8212+
resolved "https://registry.yarnpkg.com/esbuild/-/esbuild-0.12.28.tgz#84da0d2a0d0dee181281545271e0d65cf6fab1ef"
8213+
integrity sha512-pZ0FrWZXlvQOATlp14lRSk1N9GkeJ3vLIwOcUoo3ICQn9WNR4rWoNi81pbn6sC1iYUy7QPqNzI3+AEzokwyVcA==
8214+
82108215
escalade@^3.0.2, escalade@^3.1.1:
82118216
version "3.1.1"
82128217
resolved "https://registry.yarnpkg.com/escalade/-/escalade-3.1.1.tgz#d8cfdc7000965c5a0174b4a82eaa5c0552742e40"
@@ -9703,7 +9708,7 @@ glob-to-regexp@^0.3.0:
97039708
resolved "https://registry.yarnpkg.com/glob-to-regexp/-/glob-to-regexp-0.3.0.tgz#8c5a1494d2066c570cc3bfe4496175acc4d502ab"
97049709
integrity sha1-jFoUlNIGbFcMw7/kSWF1rMTVAqs=
97059710

9706-
glob@^7.0.3:
9711+
glob@^7.0.0, glob@^7.0.3:
97079712
version "7.1.7"
97089713
resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.7.tgz#3b193e9233f01d42d0b3f78294bbeeb418f94a90"
97099714
integrity sha512-OvD9ENzPLbegENnYP5UUfJIirTg4+XwMWGaQfQTY0JenxNvvIKP3U3/tAQSPIu/lHxXYSZmpXlUHeqAIdKzBLQ==
@@ -10597,6 +10602,11 @@ internal-slot@^1.0.3:
1059710602
has "^1.0.3"
1059810603
side-channel "^1.0.4"
1059910604

10605+
interpret@^1.0.0:
10606+
version "1.4.0"
10607+
resolved "https://registry.yarnpkg.com/interpret/-/interpret-1.4.0.tgz#665ab8bc4da27a774a40584e812e3e0fa45b1a1e"
10608+
integrity sha512-agE4QfB2Lkp9uICn7BAqoscw4SZP9kTE2hxiFI3jBPmXJfdqiahTbUuKGsMoN2GtqL9AxhYioAcVvgsb1HvRbA==
10609+
1060010610
into-stream@^2.0.0:
1060110611
version "2.0.1"
1060210612
resolved "https://registry.yarnpkg.com/into-stream/-/into-stream-2.0.1.tgz#db9b003694453eae091d8a5c84cc11507b781d31"
@@ -12643,7 +12653,7 @@ [email protected], minimist-options@^4.0.2:
1264312653
is-plain-obj "^1.1.0"
1264412654
kind-of "^6.0.3"
1264512655

12646-
minimist@^1.1.1, minimist@^1.2.0, minimist@^1.2.5:
12656+
minimist@^1.1.1, minimist@^1.2.0, minimist@^1.2.3, minimist@^1.2.5:
1264712657
version "1.2.5"
1264812658
resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.5.tgz#67d66014b66a6a8aaa0c083c5fd58df4e4e97602"
1264912659
integrity sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==
@@ -15546,6 +15556,13 @@ recast@^0.20.3:
1554615556
source-map "~0.6.1"
1554715557
tslib "^2.0.1"
1554815558

15559+
rechoir@^0.6.2:
15560+
version "0.6.2"
15561+
resolved "https://registry.yarnpkg.com/rechoir/-/rechoir-0.6.2.tgz#85204b54dba82d5742e28c96756ef43af50e3384"
15562+
integrity sha1-hSBLVNuoLVdC4oyWdW70OvUOM4Q=
15563+
dependencies:
15564+
resolve "^1.1.6"
15565+
1554915566
1555015567
version "2.2.2"
1555115568
resolved "https://registry.yarnpkg.com/recursive-readdir/-/recursive-readdir-2.2.2.tgz#9946fb3274e1628de6e36b2f6714953b4845094f"
@@ -15810,7 +15827,7 @@ [email protected]:
1581015827
is-core-module "^2.0.0"
1581115828
path-parse "^1.0.6"
1581215829

15813-
resolve@^1.10.0, resolve@^1.10.1, resolve@^1.12.0, resolve@^1.13.1, resolve@^1.14.2, resolve@^1.17.0, resolve@^1.18.1, resolve@^1.19.0, resolve@^1.20.0, resolve@^1.3.2, resolve@^1.8.1:
15830+
resolve@^1.1.6, resolve@^1.10.0, resolve@^1.10.1, resolve@^1.12.0, resolve@^1.13.1, resolve@^1.14.2, resolve@^1.17.0, resolve@^1.18.1, resolve@^1.19.0, resolve@^1.20.0, resolve@^1.3.2, resolve@^1.8.1:
1581415831
version "1.20.0"
1581515832
resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.20.0.tgz#629a013fb3f70755d6f0b7935cc1c2c5378b1975"
1581615833
integrity sha512-wENBPt4ySzg4ybFQW2TT1zMQucPK95HSh/nq2CFTZVOGut2+pQvSsgtda4d26YrYcr067wjbmzOG8byDPBX63A==
@@ -16309,6 +16326,15 @@ [email protected], shell-quote@^1.6.1:
1630916326
resolved "https://registry.yarnpkg.com/shell-quote/-/shell-quote-1.7.2.tgz#67a7d02c76c9da24f99d20808fcaded0e0e04be2"
1631016327
integrity sha512-mRz/m/JVscCrkMyPqHc/bczi3OQHkLTqXHEFu0zDhK/qfv3UcOA4SVmRCLmos4bhjr9ekVQubj/R7waKapmiQg==
1631116328

16329+
shelljs@^0.8.4:
16330+
version "0.8.4"
16331+
resolved "https://registry.yarnpkg.com/shelljs/-/shelljs-0.8.4.tgz#de7684feeb767f8716b326078a8a00875890e3c2"
16332+
integrity sha512-7gk3UZ9kOfPLIAbslLzyWeGiEqx9e3rxwZM0KE6EL8GlGwjym9Mrlx5/p33bWTu9YG6vcS4MBxYZDHYr5lr8BQ==
16333+
dependencies:
16334+
glob "^7.0.0"
16335+
interpret "^1.0.0"
16336+
rechoir "^0.6.2"
16337+
1631216338
shellwords@^0.1.1:
1631316339
version "0.1.1"
1631416340
resolved "https://registry.yarnpkg.com/shellwords/-/shellwords-0.1.1.tgz#d6b9181c1a48d397324c84871efbcfc73fc0654b"
@@ -16321,6 +16347,14 @@ shortid@^2.2.15:
1632116347
dependencies:
1632216348
nanoid "^2.1.0"
1632316349

16350+
shx@^0.3.3:
16351+
version "0.3.3"
16352+
resolved "https://registry.yarnpkg.com/shx/-/shx-0.3.3.tgz#681a88c7c10db15abe18525349ed474f0f1e7b9f"
16353+
integrity sha512-nZJ3HFWVoTSyyB+evEKjJ1STiixGztlqwKLTUNV5KqMWtGey9fTd4KU1gdZ1X9BV6215pswQ/Jew9NsuS/fNDA==
16354+
dependencies:
16355+
minimist "^1.2.3"
16356+
shelljs "^0.8.4"
16357+
1632416358
side-channel@^1.0.4:
1632516359
version "1.0.4"
1632616360
resolved "https://registry.yarnpkg.com/side-channel/-/side-channel-1.0.4.tgz#efce5c8fdc104ee751b25c58d4290011fa5ea2cf"

0 commit comments

Comments
 (0)