@yarn-tool/setup-module-env 1.0.1 → 1.0.5
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/CHANGELOG.md +50 -0
- package/lib/preset/tsdx/index.js +14 -8
- package/lib/preset/tsdx/index.js.map +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,56 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [1.0.5](https://github.com/bluelovers/ws-yarn-workspaces/compare/@yarn-tool/setup-module-env@1.0.4...@yarn-tool/setup-module-env@1.0.5) (2021-12-29)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### ✨ Features
|
|
10
|
+
|
|
11
|
+
* unpkg ([a033315](https://github.com/bluelovers/ws-yarn-workspaces/commit/a0333156ace648ee4a7fa874bf910022e5f242c1))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
## [1.0.4](https://github.com/bluelovers/ws-yarn-workspaces/compare/@yarn-tool/setup-module-env@1.0.3...@yarn-tool/setup-module-env@1.0.4) (2021-12-06)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### 🔖 Miscellaneous
|
|
21
|
+
|
|
22
|
+
* . ([d1aaa65](https://github.com/bluelovers/ws-yarn-workspaces/commit/d1aaa651f6bfc65be3a9d92dc31dc91178df11ab))
|
|
23
|
+
* . ([86a9c16](https://github.com/bluelovers/ws-yarn-workspaces/commit/86a9c16702133f525fafc50843f16c8c54a24df7))
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
## [1.0.3](https://github.com/bluelovers/ws-yarn-workspaces/compare/@yarn-tool/setup-module-env@1.0.2...@yarn-tool/setup-module-env@1.0.3) (2021-12-06)
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
### 🐛 Bug Fixes
|
|
33
|
+
|
|
34
|
+
* really support node esm import ([847afa1](https://github.com/bluelovers/ws-yarn-workspaces/commit/847afa18eeb40d54064454ebea4de649bda6e7c5))
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
### ✨ Features
|
|
38
|
+
|
|
39
|
+
* update tsdx ([c46cfb0](https://github.com/bluelovers/ws-yarn-workspaces/commit/c46cfb054238f238c1a6735cb8b6b9b3ac09728a))
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
## [1.0.2](https://github.com/bluelovers/ws-yarn-workspaces/compare/@yarn-tool/setup-module-env@1.0.1...@yarn-tool/setup-module-env@1.0.2) (2021-11-30)
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
### 🔖 Miscellaneous
|
|
49
|
+
|
|
50
|
+
* . ([2a7ded9](https://github.com/bluelovers/ws-yarn-workspaces/commit/2a7ded9396cd8619f03c21e0e00f458575978913))
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
|
|
6
56
|
## 1.0.1 (2021-11-28)
|
|
7
57
|
|
|
8
58
|
|
package/lib/preset/tsdx/index.js
CHANGED
|
@@ -2,17 +2,23 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.setup = exports.updatePackageJson = void 0;
|
|
4
4
|
function updatePackageJson(pkg) {
|
|
5
|
-
var _a, _b, _c, _d, _e;
|
|
6
|
-
var
|
|
5
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
6
|
+
var _j, _k, _l, _m;
|
|
7
7
|
(_a = pkg.scripts) !== null && _a !== void 0 ? _a : (pkg.scripts = {});
|
|
8
|
-
(_b = (
|
|
8
|
+
(_b = (_j = pkg.scripts)["posttest"]) !== null && _b !== void 0 ? _b : (_j["posttest"] = "yarn run build");
|
|
9
9
|
pkg.scripts["build"] = "yarn run build:tsdx && yarn run build:dts";
|
|
10
|
-
(_c = (
|
|
11
|
-
(_d = (
|
|
12
|
-
pkg.main = "dist/index.
|
|
13
|
-
pkg.module = "dist/index.esm.
|
|
10
|
+
(_c = (_k = pkg.scripts)["build:dts"]) !== null && _c !== void 0 ? _c : (_k["build:dts"] = "ynpx dts-bundle-generator -o ./dist/index.d.ts ./src/index.ts --no-banner & echo build:dts");
|
|
11
|
+
(_d = (_l = pkg.scripts)["build:tsdx"]) !== null && _d !== void 0 ? _d : (_l["build:tsdx"] = "ynpx @bluelovers/tsdx build --target node --name index");
|
|
12
|
+
pkg.main = "dist/index.cjs";
|
|
13
|
+
pkg.module = "dist/index.esm.mjs";
|
|
14
14
|
pkg.types = pkg.typings = "dist/index.d.ts";
|
|
15
|
-
(_e = pkg.
|
|
15
|
+
(_e = pkg.unpkg) !== null && _e !== void 0 ? _e : (pkg.unpkg = "dist/index.umd.js");
|
|
16
|
+
(_f = pkg.exports) !== null && _f !== void 0 ? _f : (pkg.exports = {});
|
|
17
|
+
(_g = (_m = pkg.exports)['.']) !== null && _g !== void 0 ? _g : (_m['.'] = {});
|
|
18
|
+
pkg.exports['.'].types = "./dist/index.d.ts";
|
|
19
|
+
pkg.exports['.'].import = "./dist/index.esm.mjs";
|
|
20
|
+
pkg.exports['.'].require = "./dist/index.cjs";
|
|
21
|
+
(_h = pkg.keywords) !== null && _h !== void 0 ? _h : (pkg.keywords = []);
|
|
16
22
|
pkg.keywords.push('create-by-tsdx');
|
|
17
23
|
return pkg;
|
|
18
24
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;AAEA,SAAgB,iBAAiB,CAAyB,GAAM;;;IAE/D,MAAA,GAAG,CAAC,OAAO,oCAAX,GAAG,CAAC,OAAO,GAAK,EAAE,EAAC;IAEnB,YAAA,GAAG,CAAC,OAAO,EAAC,UAAU,wCAAV,UAAU,IAAM,gBAAgB,EAAC;IAC7C,GA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oCAAZ,GAAG,CAAC,QAAQ,GAAK,EAAE,EAAC;IACpB,GAAG,CAAC,QAAQ,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;IAEpC,OAAO,GAAG,CAAA;AACX,CAAC;AAxBD,8CAwBC;AAED,SAAgB,KAAK,CAAyB,MAG7C;IAEA,IAAI,EAAE,GAAG,EAAE,GAAG,MAAM,CAAC;IAErB,GAAG,GAAG,iBAAiB,CAAC,GAAG,CAAC,CAAC;IAE7B,OAAO;QACN,GAAG;KACH,CAAA;AACF,CAAC;AAZD,sBAYC","sourcesContent":["import { IPackageJson } from '@ts-type/package-dts/package-json';\n\nexport function updatePackageJson<P extends IPackageJson>(pkg: P)\n{\n\tpkg.scripts ??= {};\n\n\tpkg.scripts[\"posttest\"] ??= \"yarn run build\";\n\tpkg.scripts[\"build\"] = \"yarn run build:tsdx && yarn run build:dts\";\n\tpkg.scripts[\"build:dts\"] ??= \"ynpx dts-bundle-generator -o ./dist/index.d.ts ./src/index.ts --no-banner & echo build:dts\";\n\tpkg.scripts[\"build:tsdx\"] ??= \"ynpx @bluelovers/tsdx build --target node --name index\";\n\n\tpkg.main = \"dist/index.cjs\";\n\tpkg.module = \"dist/index.esm.mjs\";\n\tpkg.types = pkg.typings = \"dist/index.d.ts\";\n\tpkg.unpkg ??= \"dist/index.umd.js\";\n\n\tpkg.exports ??= {};\n\tpkg.exports['.'] ??= {};\n\tpkg.exports['.'].types = \"./dist/index.d.ts\";\n\tpkg.exports['.'].import = \"./dist/index.esm.mjs\";\n\tpkg.exports['.'].require = \"./dist/index.cjs\";\n\n\tpkg.keywords ??= [];\n\tpkg.keywords.push('create-by-tsdx');\n\n\treturn pkg\n}\n\nexport function setup<P extends IPackageJson>(config: {\n\tpkg: P,\n\n})\n{\n\tlet { pkg } = config;\n\n\tpkg = updatePackageJson(pkg);\n\n\treturn {\n\t\tpkg,\n\t}\n}\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yarn-tool/setup-module-env",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.5",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"yarn",
|
|
@@ -56,5 +56,5 @@
|
|
|
56
56
|
"access": "public"
|
|
57
57
|
},
|
|
58
58
|
"packageManager": "yarn@^1.22.11",
|
|
59
|
-
"gitHead": "
|
|
59
|
+
"gitHead": "1e6163c54a28b6fcc9adba88f1b227707bc4634c"
|
|
60
60
|
}
|