create-yarn-workspaces 2.0.12 → 2.0.15

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,40 @@
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
+ ## [2.0.15](https://github.com/bluelovers/ws-yarn-workspaces/compare/create-yarn-workspaces@2.0.14...create-yarn-workspaces@2.0.15) (2022-09-06)
7
+
8
+
9
+
10
+ ### 📚 Documentation
11
+
12
+ * add directory ([442a552](https://github.com/bluelovers/ws-yarn-workspaces/commit/442a55232619f7fe2b9bad6f8eccfffc4f8f47d2))
13
+
14
+
15
+ ### 🔖 Miscellaneous
16
+
17
+ * . ([3a7fdc9](https://github.com/bluelovers/ws-yarn-workspaces/commit/3a7fdc924ada93b1d0ac0160f8d77e46ff060588))
18
+
19
+
20
+
21
+ ## [2.0.14](https://github.com/bluelovers/ws-yarn-workspaces/compare/create-yarn-workspaces@2.0.13...create-yarn-workspaces@2.0.14) (2022-08-28)
22
+
23
+ **Note:** Version bump only for package create-yarn-workspaces
24
+
25
+
26
+
27
+
28
+
29
+ ## [2.0.13](https://github.com/bluelovers/ws-yarn-workspaces/compare/create-yarn-workspaces@2.0.12...create-yarn-workspaces@2.0.13) (2022-08-26)
30
+
31
+
32
+
33
+ ### 🔖 Miscellaneous
34
+
35
+ * . ([157d5dc](https://github.com/bluelovers/ws-yarn-workspaces/commit/157d5dc8959261d9326f6e633987182898ae9670))
36
+ * . ([dafc19c](https://github.com/bluelovers/ws-yarn-workspaces/commit/dafc19c43afb42c904b6e7dcc49d93567897c092))
37
+
38
+
39
+
6
40
  ## [2.0.12](https://github.com/bluelovers/ws-yarn-workspaces/compare/create-yarn-workspaces@2.0.11...create-yarn-workspaces@2.0.12) (2022-08-25)
7
41
 
8
42
 
package/lib/index.js CHANGED
@@ -17,8 +17,8 @@ function getDefaultPackageJson(name) {
17
17
  ],
18
18
  "scripts": (0, ws_root_scripts_1.defaultWorkspaceRootScripts)(),
19
19
  "dependencies": {
20
- "ts-type": "^2.1.10",
21
- "tslib": "^2",
20
+ "ts-type": ">=2",
21
+ "tslib": ">=2",
22
22
  },
23
23
  "devDependencies": {
24
24
  "@types/jest": "^28.1.6",
package/lib/index.js.map CHANGED
@@ -1 +1 @@
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,cAAc;QAChC,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,IAAI;SACb;QACD,iBAAiB,EAAE;YAClB,aAAa,EAAE,SAAS;YACxB,sBAAsB,EAAE,SAAS;YACjC,aAAa,EAAE,GAAG;YAClB,6BAA6B,EAAE,GAAG;SAClC;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;AAxCD,sDAwCC;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.19\",\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\": \"^2.1.10\",\n\t\t\t\"tslib\": \"^2\",\n\t\t},\n\t\t\"devDependencies\": {\n\t\t\t\"@types/jest\": \"^28.1.6\",\n\t\t\t\"@bluelovers/tsconfig\": \"^1.0.30\",\n\t\t\t\"@types/node\": \"*\",\n\t\t\t\"@yarn-tool/ws-find-up-paths\": \"*\",\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"]}
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,cAAc;QAChC,YAAY,EAAE;YACb,YAAY;SACZ;QACD,QAAQ,EAAE;YACT,qBAAqB;SACrB;QACD,SAAS,EAAE,IAAA,6CAA2B,GAAE;QACxC,cAAc,EAAE;YACf,SAAS,EAAE,KAAK;YAChB,OAAO,EAAE,KAAK;SACd;QACD,iBAAiB,EAAE;YAClB,aAAa,EAAE,SAAS;YACxB,sBAAsB,EAAE,SAAS;YACjC,aAAa,EAAE,GAAG;YAClB,6BAA6B,EAAE,GAAG;SAClC;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;AAxCD,sDAwCC;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.19\",\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\": \">=2\",\n\t\t\t\"tslib\": \">=2\",\n\t\t},\n\t\t\"devDependencies\": {\n\t\t\t\"@types/jest\": \"^28.1.6\",\n\t\t\t\"@bluelovers/tsconfig\": \"^1.0.30\",\n\t\t\t\"@types/node\": \"*\",\n\t\t\t\"@yarn-tool/ws-find-up-paths\": \"*\",\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/lib/util.d.ts CHANGED
@@ -1 +1,4 @@
1
+ /**
2
+ * @deprecated
3
+ */
1
4
  export declare function isSamePath(p1: string, p2: string): boolean;
package/lib/util.js CHANGED
@@ -1,14 +1,16 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.isSamePath = void 0;
4
- const tslib_1 = require("tslib");
5
4
  const path_1 = require("path");
6
- const path_is_same_1 = tslib_1.__importDefault(require("path-is-same"));
5
+ const path_is_same_1 = require("path-is-same");
6
+ /**
7
+ * @deprecated
8
+ */
7
9
  function isSamePath(p1, p2) {
8
10
  if (!p1 || !p2) {
9
11
  return false;
10
12
  }
11
- else if ((0, path_is_same_1.default)(p1, p2)) {
13
+ else if ((0, path_is_same_1.pathIsSame)(p1, p2)) {
12
14
  return true;
13
15
  }
14
16
  let s = (0, path_1.relative)(p1, p2);
package/lib/util.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"util.js","sourceRoot":"","sources":["util.ts"],"names":[],"mappings":";;;;AAAA,+BAAgC;AAChC,wEAAsC;AAEtC,SAAgB,UAAU,CAAC,EAAU,EAAE,EAAU;IAEhD,IAAI,CAAC,EAAE,IAAI,CAAC,EAAE,EACd;QACC,OAAO,KAAK,CAAC;KACb;SACI,IAAI,IAAA,sBAAU,EAAC,EAAE,EAAE,EAAE,CAAC,EAC3B;QACC,OAAO,IAAI,CAAC;KACZ;IAED,IAAI,CAAC,GAAG,IAAA,eAAQ,EAAC,EAAE,EAAE,EAAE,CAAC,CAAC;IACzB,OAAO,CAAC,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,EAAE,CAAC,CAAC;AAChC,CAAC;AAbD,gCAaC","sourcesContent":["import { relative } from \"path\";\nimport pathIsSame from 'path-is-same';\n\nexport function isSamePath(p1: string, p2: string)\n{\n\tif (!p1 || !p2)\n\t{\n\t\treturn false;\n\t}\n\telse if (pathIsSame(p1, p2))\n\t{\n\t\treturn true;\n\t}\n\n\tlet s = relative(p1, p2);\n\treturn (s === '.' || s === '');\n}\n\n"]}
1
+ {"version":3,"file":"util.js","sourceRoot":"","sources":["util.ts"],"names":[],"mappings":";;;AAAA,+BAAgC;AAChC,+CAA0C;AAE1C;;GAEG;AACH,SAAgB,UAAU,CAAC,EAAU,EAAE,EAAU;IAEhD,IAAI,CAAC,EAAE,IAAI,CAAC,EAAE,EACd;QACC,OAAO,KAAK,CAAC;KACb;SACI,IAAI,IAAA,yBAAU,EAAC,EAAE,EAAE,EAAE,CAAC,EAC3B;QACC,OAAO,IAAI,CAAC;KACZ;IAED,IAAI,CAAC,GAAG,IAAA,eAAQ,EAAC,EAAE,EAAE,EAAE,CAAC,CAAC;IACzB,OAAO,CAAC,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,EAAE,CAAC,CAAC;AAChC,CAAC;AAbD,gCAaC","sourcesContent":["import { relative } from \"path\";\nimport { pathIsSame } from 'path-is-same';\n\n/**\n * @deprecated\n */\nexport function isSamePath(p1: string, p2: string)\n{\n\tif (!p1 || !p2)\n\t{\n\t\treturn false;\n\t}\n\telse if (pathIsSame(p1, p2))\n\t{\n\t\treturn true;\n\t}\n\n\tlet s = relative(p1, p2);\n\treturn (s === '.' || s === '');\n}\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-yarn-workspaces",
3
- "version": "2.0.12",
3
+ "version": "2.0.15",
4
4
  "description": "yarn create yarn-workspaces npx create-yarn-workspaces",
5
5
  "keywords": [
6
6
  "cli",
@@ -18,7 +18,8 @@
18
18
  },
19
19
  "repository": {
20
20
  "type": "git",
21
- "url": "git+https://github.com/bluelovers/ws-yarn-workspaces.git"
21
+ "url": "git+https://github.com/bluelovers/ws-yarn-workspaces.git",
22
+ "directory": "packages/create-yarn-workspaces"
22
23
  },
23
24
  "license": "ISC",
24
25
  "author": "",
@@ -36,6 +37,9 @@
36
37
  "lint": "npx eslint **/*.ts",
37
38
  "test": "echo test",
38
39
  "test_": "node ./bin/yarn-ws-init --debug --ignoreExistsPackage --ignoreParentWorkspaces ./test/temp",
40
+ "test:jest": "jest --passWithNoTests",
41
+ "test:jest:snapshot": "yarn run test:jest -- -u",
42
+ "test:snapshot": "yarn run test -- -u",
39
43
  "npm:publish": "npm publish",
40
44
  "preversion": "yarn run test",
41
45
  "prepublishOnly": "echo prepublishOnly",
@@ -48,19 +52,19 @@
48
52
  "resolutions": {},
49
53
  "dependencies": {
50
54
  "@ts-type/package-dts": "^2.0.5",
51
- "@yarn-tool/find-root": "^2.0.4",
52
- "@yarn-tool/pkg-entry-util": "^2.0.13",
53
- "@yarn-tool/static-file": "^2.0.5",
55
+ "@yarn-tool/find-root": "^2.0.6",
56
+ "@yarn-tool/pkg-entry-util": "^2.0.15",
57
+ "@yarn-tool/static-file": "^2.0.8",
54
58
  "debug-color2": "^1.3.2",
55
- "find-yarn-workspace-root2": "^1.2.41",
59
+ "find-yarn-workspace-root2": "^1.2.43",
56
60
  "fs-extra": "^10.1.0",
57
61
  "path-is-same": "^1.0.19",
58
62
  "pkg-dir": "<6 >=5",
59
63
  "sort-package-json": "^1.57.0",
60
- "sort-package-json3": "^2.0.4",
61
- "tslib": "^2",
64
+ "sort-package-json3": "^2.0.6",
65
+ "tslib": ">=2",
62
66
  "upath2": "^3.1.15",
63
67
  "yargs": "^17.5.1"
64
68
  },
65
- "gitHead": "3484e0721f85ac8235922ab980cf60993cdcbcd9"
69
+ "gitHead": "fccc2913440df31b04f2971e479fbe1d4c3a7a0c"
66
70
  }