create-yarn-workspaces 1.0.142 → 1.0.146

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 CHANGED
@@ -3,6 +3,44 @@
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.146](https://github.com/bluelovers/ws-yarn-workspaces/compare/create-yarn-workspaces@1.0.145...create-yarn-workspaces@1.0.146) (2022-01-25)
7
+
8
+ **Note:** Version bump only for package create-yarn-workspaces
9
+
10
+
11
+
12
+
13
+
14
+ ## [1.0.145](https://github.com/bluelovers/ws-yarn-workspaces/compare/create-yarn-workspaces@1.0.144...create-yarn-workspaces@1.0.145) (2022-01-13)
15
+
16
+
17
+ ### ♻️ Chores
18
+
19
+ * **deps:** update deps ([7658604](https://github.com/bluelovers/ws-yarn-workspaces/commit/7658604e5cabfa61ed92c2579ecae3d37d3fd737))
20
+
21
+
22
+
23
+
24
+
25
+ ## [1.0.144](https://github.com/bluelovers/ws-yarn-workspaces/compare/create-yarn-workspaces@1.0.143...create-yarn-workspaces@1.0.144) (2022-01-02)
26
+
27
+ **Note:** Version bump only for package create-yarn-workspaces
28
+
29
+
30
+
31
+
32
+
33
+ ## [1.0.143](https://github.com/bluelovers/ws-yarn-workspaces/compare/create-yarn-workspaces@1.0.142...create-yarn-workspaces@1.0.143) (2022-01-01)
34
+
35
+
36
+ ### 📦 Code Refactoring
37
+
38
+ * code splitting ([fa83e8f](https://github.com/bluelovers/ws-yarn-workspaces/commit/fa83e8f47a10a5ad7ed1ac5337d8a2d20c556df9))
39
+
40
+
41
+
42
+
43
+
6
44
  ## [1.0.142](https://github.com/bluelovers/ws-yarn-workspaces/compare/create-yarn-workspaces@1.0.141...create-yarn-workspaces@1.0.142) (2022-01-01)
7
45
 
8
46
 
package/lib/index.js CHANGED
@@ -1,6 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getDefaultTsconfig = exports.getDefaultPackageJson = void 0;
4
+ const ws_root_scripts_1 = require("@yarn-tool/pkg-entry-util/lib/preset/ws-root-scripts");
5
+ const dummy_1 = require("@yarn-tool/pkg-entry-util/lib/preset/dummy");
4
6
  function getDefaultPackageJson(name) {
5
7
  let json = {
6
8
  "name": name,
@@ -13,32 +15,7 @@ function getDefaultPackageJson(name) {
13
15
  keywords: [
14
16
  "create-by-yarn-tool",
15
17
  ],
16
- "scripts": {
17
- "test:all": "lerna run test --concurrency 1",
18
- "build:all": "lerna run build --concurrency 1",
19
- "review:all": "lerna run review --concurrency 1",
20
- "coverage:all": "lerna run coverage --concurrency 1",
21
- "lint:all": "lerna run lint --concurrency 1",
22
- "preversion": "yt ws run test",
23
- "lerna:publish": "yarn run prepublishOnly:root && lerna publish && yarn run postpublishOnly",
24
- "lerna:publish:yes": "yarn run prepublishOnly:root && lerna publish --yes --bump patch && yarn run postpublishOnly",
25
- "prepublishOnly:root": "yarn run prepublishOnly:check-bin && yarn run prepare:fix-ws-links",
26
- "prepublishOnly:lockfile": "ynpx --quiet sync-lockfile",
27
- "prepublishOnly:check-bin": "ynpx --quiet @yarn-tool/check-pkg-bin",
28
- "prepare:fix-ws-links": "ynpx --quiet @yarn-tool/fix-ws-links",
29
- "prepublishOnly:update": "yarn run ncu && yarn run sort-package-json",
30
- "ncu": "yarn run ncu:root && yarn run ncu:ws",
31
- "ncu:root": "yarn-tool ncu -u",
32
- "ncu:ws": "yarn-tool ws exec yarn-tool ncu -- -u",
33
- "sort-package-json": "yarn run sort-package-json:root && yarn run sort-package-json:ws",
34
- "sort-package-json:root": "yarn-tool sort",
35
- "sort-package-json:ws": "yarn-tool ws sort",
36
- "postpublishOnly": "yarn run postpublishOnly:ws-root-changelog & echo postpublishOnly",
37
- "postpublishOnly:ws-root-changelog": "ynpx ws-root-changelog & git add ./CHANGELOG.md & git commit ./CHANGELOG.md -m \"chore(changelog): update changelog toc in workspaces root\" & echo update changelog toc in workspaces root",
38
- "test": "yarn-tool ws run test",
39
- "install:reset-lockfile": "yarn-tool install --reset-lockfile",
40
- "tsc:showConfig": "ynpx get-current-tsconfig -p",
41
- },
18
+ "scripts": (0, ws_root_scripts_1.defaultWorkspaceRootScripts)(),
42
19
  "dependencies": {
43
20
  "ts-type": "^1.2.32",
44
21
  "tslib": "^2.3.0",
@@ -60,20 +37,7 @@ function getDefaultPackageJson(name) {
60
37
  },
61
38
  "resolutions": {},
62
39
  };
63
- [
64
- 'preversion',
65
- 'version',
66
- 'prepublishOnly',
67
- 'postversion',
68
- 'publish',
69
- 'prepublish',
70
- 'postpublish',
71
- 'postpublishOnly',
72
- ].forEach(k => {
73
- var _a;
74
- var _b;
75
- (_a = (_b = json.scripts)[k]) !== null && _a !== void 0 ? _a : (_b[k] = `echo workspaces ${k}`);
76
- });
40
+ (0, dummy_1.fillDummyScripts)(json.scripts, 'workspaces');
77
41
  return json;
78
42
  }
79
43
  exports.getDefaultPackageJson = getDefaultPackageJson;
package/lib/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;AAEA,SAAgB,qBAAqB,CAAC,IAAa;IAElD,IAAI,IAAI,GAAiB;QACxB,MAAM,EAAE,IAAI;QACZ,SAAS,EAAE,OAAO;QAClB,SAAS,EAAE,IAAI;QACf,gBAAgB,EAAE,eAAe;QACjC,YAAY,EAAE;YACb,YAAY;SACZ;QACD,QAAQ,EAAE;YACT,qBAAqB;SACrB;QACD,SAAS,EAAE;YACV,UAAU,EAAE,gCAAgC;YAC5C,WAAW,EAAE,iCAAiC;YAC9C,YAAY,EAAE,kCAAkC;YAChD,cAAc,EAAE,oCAAoC;YACpD,UAAU,EAAE,gCAAgC;YAC5C,YAAY,EAAE,gBAAgB;YAC9B,eAAe,EAAE,2EAA2E;YAC5F,mBAAmB,EAAE,8FAA8F;YACnH,qBAAqB,EAAE,oEAAoE;YAC3F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AAA;AACF,CAAC;AALD,gDAKC","sourcesContent":["import { IPackageJson } from '@ts-type/package-dts/package-json';\n\nexport function getDefaultPackageJson(name?: string): IPackageJson\n{\n\tlet json: IPackageJson = {\n\t\t\"name\": name,\n\t\t\"version\": \"1.0.0\",\n\t\t\"private\": true,\n\t\t\"packageManager\": \"yarn@^1.22.11\",\n\t\t\"workspaces\": [\n\t\t\t\"packages/*\",\n\t\t],\n\t\tkeywords: [\n\t\t\t\"create-by-yarn-tool\",\n\t\t],\n\t\t\"scripts\": {\n\t\t\t\"test:all\": \"lerna run test --concurrency 1\",\n\t\t\t\"build:all\": \"lerna run build --concurrency 1\",\n\t\t\t\"review:all\": \"lerna run review --concurrency 1\",\n\t\t\t\"coverage:all\": \"lerna run coverage --concurrency 1\",\n\t\t\t\"lint:all\": \"lerna run lint --concurrency 1\",\n\t\t\t\"preversion\": \"yt ws run test\",\n\t\t\t\"lerna:publish\": \"yarn run prepublishOnly:root && lerna publish && yarn run postpublishOnly\",\n\t\t\t\"lerna:publish:yes\": \"yarn run prepublishOnly:root && lerna publish --yes --bump patch && yarn run postpublishOnly\",\n\t\t\t\"prepublishOnly:root\": \"yarn run prepublishOnly:check-bin && yarn run prepare:fix-ws-links\",\n\t\t\t\"prepublishOnly:lockfile\": \"ynpx --quiet sync-lockfile\",\n\t\t\t\"prepublishOnly:check-bin\": \"ynpx --quiet @yarn-tool/check-pkg-bin\",\n\t\t\t\"prepare:fix-ws-links\": \"ynpx --quiet @yarn-tool/fix-ws-links\",\n\t\t\t\"prepublishOnly:update\": \"yarn run ncu && yarn run sort-package-json\",\n\t\t\t\"ncu\": \"yarn run ncu:root && yarn run ncu:ws\",\n\t\t\t\"ncu:root\": \"yarn-tool ncu -u\",\n\t\t\t\"ncu:ws\": \"yarn-tool ws exec yarn-tool ncu -- -u\",\n\t\t\t\"sort-package-json\": \"yarn run sort-package-json:root && yarn run sort-package-json:ws\",\n\t\t\t\"sort-package-json:root\": \"yarn-tool sort\",\n\t\t\t\"sort-package-json:ws\": \"yarn-tool ws sort\",\n\t\t\t\"postpublishOnly\": \"yarn run postpublishOnly:ws-root-changelog & echo postpublishOnly\",\n\t\t\t\"postpublishOnly:ws-root-changelog\": \"ynpx ws-root-changelog & git add ./CHANGELOG.md & git commit ./CHANGELOG.md -m \\\"chore(changelog): update changelog toc in workspaces root\\\" & echo update changelog toc in workspaces root\",\n\t\t\t\"test\": \"yarn-tool ws run test\",\n\t\t\t\"install:reset-lockfile\": \"yarn-tool install --reset-lockfile\",\n\t\t\t\"tsc:showConfig\": \"ynpx get-current-tsconfig -p\",\n\t\t},\n\t\t\"dependencies\": {\n\t\t\t\"ts-type\": \"^1.2.32\",\n\t\t\t\"tslib\": \"^2.3.0\",\n\t\t},\n\t\t\"devDependencies\": {\n\t\t\t\"@types/jest\": \"^26.0.24\",\n\t\t\t\"@bluelovers/tsconfig\": \"^1.0.20\",\n\t\t\t\"@types/node\": \"*\",\n\t\t},\n\t\t\"peerDependencies\": {\n\t\t\t\"lerna\": \"*\",\n\t\t\t\"yarn\": \"*\",\n\t\t\t\"ynpx\": \"*\",\n\t\t\t\"typescript\": \"*\",\n\t\t\t\"ts-node\": \"*\",\n\t\t\t\"@yarn-tool/require-resolve\": \"*\",\n\t\t\t\"yarn-tool\": \"*\",\n\t\t\t\"@bluelovers/conventional-changelog-bluelovers\": \"*\",\n\t\t},\n\t\t\"resolutions\": {},\n\t} as any;\n\n\t[\n\t\t'preversion',\n\t\t'version',\n\t\t'prepublishOnly',\n\t\t'postversion',\n\t\t'publish',\n\t\t'prepublish',\n\t\t'postpublish',\n\t\t'postpublishOnly',\n\t].forEach(k =>\n\t{\n\t\tjson.scripts[k] ??= `echo workspaces ${k}`\n\t});\n\n\treturn json;\n}\n\nexport function getDefaultTsconfig()\n{\n\treturn {\n\t\textends: \"@bluelovers/tsconfig/esm/mapfile.json\",\n\t}\n}\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;AACA,0FAAmG;AACnG,sEAA8E;AAE9E,SAAgB,qBAAqB,CAAC,IAAa;IAElD,IAAI,IAAI,GAAiB;QACxB,MAAM,EAAE,IAAI;QACZ,SAAS,EAAE,OAAO;QAClB,SAAS,EAAE,IAAI;QACf,gBAAgB,EAAE,eAAe;QACjC,YAAY,EAAE;YACb,YAAY;SACZ;QACD,QAAQ,EAAE;YACT,qBAAqB;SACrB;QACD,SAAS,EAAE,IAAA,6CAA2B,GAAE;QACxC,cAAc,EAAE;YACf,SAAS,EAAE,SAAS;YACpB,OAAO,EAAE,QAAQ;SACjB;QACD,iBAAiB,EAAE;YAClB,aAAa,EAAE,UAAU;YACzB,sBAAsB,EAAE,SAAS;YACjC,aAAa,EAAE,GAAG;SAClB;QACD,kBAAkB,EAAE;YACnB,OAAO,EAAE,GAAG;YACZ,MAAM,EAAE,GAAG;YACX,MAAM,EAAE,GAAG;YACX,YAAY,EAAE,GAAG;YACjB,SAAS,EAAE,GAAG;YACd,4BAA4B,EAAE,GAAG;YACjC,WAAW,EAAE,GAAG;YAChB,+CAA+C,EAAE,GAAG;SACpD;QACD,aAAa,EAAE,EAAE;KACV,CAAC;IAET,IAAA,wBAAgB,EAAC,IAAI,CAAC,OAAO,EAAE,YAAY,CAAC,CAAC;IAE7C,OAAO,IAAI,CAAC;AACb,CAAC;AAvCD,sDAuCC;AAED,SAAgB,kBAAkB;IAEjC,OAAO;QACN,OAAO,EAAE,uCAAuC;KAChD,CAAA;AACF,CAAC;AALD,gDAKC","sourcesContent":["import { IPackageJson } from '@ts-type/package-dts/package-json';\nimport { defaultWorkspaceRootScripts } from '@yarn-tool/pkg-entry-util/lib/preset/ws-root-scripts';\nimport { fillDummyScripts } from '@yarn-tool/pkg-entry-util/lib/preset/dummy';\n\nexport function getDefaultPackageJson(name?: string): IPackageJson\n{\n\tlet json: IPackageJson = {\n\t\t\"name\": name,\n\t\t\"version\": \"1.0.0\",\n\t\t\"private\": true,\n\t\t\"packageManager\": \"yarn@^1.22.11\",\n\t\t\"workspaces\": [\n\t\t\t\"packages/*\",\n\t\t],\n\t\tkeywords: [\n\t\t\t\"create-by-yarn-tool\",\n\t\t],\n\t\t\"scripts\": defaultWorkspaceRootScripts(),\n\t\t\"dependencies\": {\n\t\t\t\"ts-type\": \"^1.2.32\",\n\t\t\t\"tslib\": \"^2.3.0\",\n\t\t},\n\t\t\"devDependencies\": {\n\t\t\t\"@types/jest\": \"^26.0.24\",\n\t\t\t\"@bluelovers/tsconfig\": \"^1.0.20\",\n\t\t\t\"@types/node\": \"*\",\n\t\t},\n\t\t\"peerDependencies\": {\n\t\t\t\"lerna\": \"*\",\n\t\t\t\"yarn\": \"*\",\n\t\t\t\"ynpx\": \"*\",\n\t\t\t\"typescript\": \"*\",\n\t\t\t\"ts-node\": \"*\",\n\t\t\t\"@yarn-tool/require-resolve\": \"*\",\n\t\t\t\"yarn-tool\": \"*\",\n\t\t\t\"@bluelovers/conventional-changelog-bluelovers\": \"*\",\n\t\t},\n\t\t\"resolutions\": {},\n\t} as any;\n\n\tfillDummyScripts(json.scripts, 'workspaces');\n\n\treturn json;\n}\n\nexport function getDefaultTsconfig()\n{\n\treturn {\n\t\textends: \"@bluelovers/tsconfig/esm/mapfile.json\",\n\t}\n}\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-yarn-workspaces",
3
- "version": "1.0.142",
3
+ "version": "1.0.146",
4
4
  "description": "yarn create yarn-workspaces npx create-yarn-workspaces",
5
5
  "keywords": [
6
6
  "cli",
@@ -47,19 +47,20 @@
47
47
  },
48
48
  "resolutions": {},
49
49
  "dependencies": {
50
- "@ts-type/package-dts": "^1.0.56",
51
- "@yarn-tool/find-root": "^1.0.60",
52
- "@yarn-tool/static-file": "^1.0.87",
50
+ "@ts-type/package-dts": "^1.0.58",
51
+ "@yarn-tool/find-root": "^1.0.61",
52
+ "@yarn-tool/pkg-entry-util": "^1.0.6",
53
+ "@yarn-tool/static-file": "^1.0.90",
53
54
  "debug-color2": "^1.2.7",
54
55
  "find-yarn-workspace-root2": "^1.2.36",
55
56
  "fs-extra": "^10.0.0",
56
57
  "path-is-same": "^1.0.17",
57
58
  "pkg-dir": "< 6 >= 5",
58
59
  "sort-package-json": "^1.53.1",
59
- "sort-package-json3": "^1.0.49",
60
+ "sort-package-json3": "^1.0.51",
60
61
  "tslib": "^2.3.1",
61
62
  "upath2": "^3.1.12",
62
63
  "yargs": "^17.3.1"
63
64
  },
64
- "gitHead": "1d82441eb72130be73cdc9f5fbd079f6cd265f8f"
65
+ "gitHead": "fbf381266d9eac5a9f129be640e2690e19cbb956"
65
66
  }