create-yarn-workspaces 2.0.18 → 2.0.20

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,26 @@
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.20](https://github.com/bluelovers/ws-yarn-workspaces/compare/create-yarn-workspaces@2.0.19...create-yarn-workspaces@2.0.20) (2022-09-29)
7
+
8
+
9
+
10
+ ### 🔖 Miscellaneous
11
+
12
+ * . ([6035e23](https://github.com/bluelovers/ws-yarn-workspaces/commit/6035e2399f4f5a5f5e5ac56309b6dc37ffe91389))
13
+
14
+
15
+
16
+ ## [2.0.19](https://github.com/bluelovers/ws-yarn-workspaces/compare/create-yarn-workspaces@2.0.18...create-yarn-workspaces@2.0.19) (2022-09-28)
17
+
18
+
19
+
20
+ ### 📌 Dependencies
21
+
22
+ * update deps ([1d6bcad](https://github.com/bluelovers/ws-yarn-workspaces/commit/1d6bcad8d8cf45daeab2360144383208b2ea6b9d))
23
+
24
+
25
+
6
26
  ## [2.0.18](https://github.com/bluelovers/ws-yarn-workspaces/compare/create-yarn-workspaces@2.0.17...create-yarn-workspaces@2.0.18) (2022-09-27)
7
27
 
8
28
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-yarn-workspaces",
3
- "version": "2.0.18",
3
+ "version": "2.0.20",
4
4
  "description": "yarn create yarn-workspaces npx create-yarn-workspaces",
5
5
  "keywords": [
6
6
  "cli",
@@ -40,6 +40,7 @@
40
40
  "test:jest": "jest --passWithNoTests",
41
41
  "test:jest:snapshot": "yarn run test:jest -- -u",
42
42
  "test:snapshot": "yarn run test -- -u",
43
+ "test:tsd": "ynpx tsd",
43
44
  "npm:publish": "npm publish",
44
45
  "preversion": "yarn run test",
45
46
  "prepublishOnly": "echo prepublishOnly",
@@ -52,19 +53,19 @@
52
53
  "resolutions": {},
53
54
  "dependencies": {
54
55
  "@ts-type/package-dts": "^2.0.5",
55
- "@yarn-tool/find-root": "^2.0.8",
56
- "@yarn-tool/pkg-entry-util": "^2.0.17",
57
- "@yarn-tool/static-file": "^2.0.11",
56
+ "@yarn-tool/find-root": "^2.0.10",
57
+ "@yarn-tool/pkg-entry-util": "^2.0.19",
58
+ "@yarn-tool/static-file": "^2.0.12",
58
59
  "debug-color2": "^1.3.2",
59
- "find-yarn-workspace-root2": "^1.2.44",
60
+ "find-yarn-workspace-root2": "^1.2.46",
60
61
  "fs-extra": "^10.1.0",
61
- "path-is-same": "^1.0.19",
62
+ "path-is-same": "^1.0.22",
62
63
  "pkg-dir": "<6 >=5",
63
64
  "sort-package-json": "^1.57.0",
64
- "sort-package-json3": "^2.0.8",
65
+ "sort-package-json3": "^2.0.9",
65
66
  "tslib": ">=2",
66
- "upath2": "^3.1.15",
67
+ "upath2": "^3.1.18",
67
68
  "yargs": "^17.5.1"
68
69
  },
69
- "gitHead": "863a1f489a32c38c98313e4edd11f59d0c035d96"
70
+ "gitHead": "3276b7881ad407d6da75804fee95de66d602805c"
70
71
  }
package/jest.config.js DELETED
@@ -1,116 +0,0 @@
1
- // @ts-check
2
-
3
- const { basename, extname, dirname } = require('path');
4
-
5
- /**
6
- * // @type { import('@jest/types').Config.InitialOptions }
7
- * @type { import('ts-jest').InitialOptionsTsJest }
8
- */
9
- let jestConfig = {
10
-
11
- }
12
-
13
- /**
14
- * @param {string} name
15
- * @returns {string}
16
- * @private
17
- */
18
- function _requireResolve(name)
19
- {
20
- let result;
21
-
22
- try
23
- {
24
- // @ts-ignore
25
- const { requireResolveExtra, requireResolveCore } = require('@yarn-tool/require-resolve');
26
-
27
- const paths = [
28
- requireResolveExtra('@bluelovers/tsdx').result,
29
- requireResolveExtra('tsdx').result,
30
- ].filter(Boolean);
31
-
32
- result = requireResolveCore(name, {
33
- includeGlobal: true,
34
- includeCurrentDirectory: true,
35
- paths,
36
- })
37
- }
38
- catch (e)
39
- {
40
-
41
- }
42
-
43
- result = result || require.resolve(name);
44
-
45
- console.info('[require.resolve]', name, '=>', result)
46
-
47
- return result
48
- }
49
-
50
- let _ok = true;
51
-
52
- try
53
- {
54
- if (!jestConfig.preset)
55
- {
56
-
57
- let result = require('@yarn-tool/ws-find-up-paths').findUpPathsWorkspaces([
58
- 'jest-preset.js',
59
- 'jest.config.js',
60
- ], {
61
- ignoreCurrentPackage: true,
62
- onlyFiles: true,
63
- }).result;
64
-
65
- if (result)
66
- {
67
- let name = basename(result, extname(result))
68
-
69
- switch (name)
70
- {
71
- case 'jest-preset':
72
- jestConfig.preset = dirname(result);
73
- break;
74
- default:
75
- jestConfig = {
76
- ...require(result),
77
- jestConfig,
78
- };
79
- break;
80
- }
81
-
82
- _ok = false;
83
- }
84
- }
85
- }
86
- catch (e)
87
- {
88
-
89
- }
90
-
91
- try
92
- {
93
- if (_ok && !jestConfig.preset)
94
- {
95
- let result = _requireResolve('@bluelovers/jest-config/package.json');
96
- if (result)
97
- {
98
- jestConfig.preset = dirname(result);
99
- _ok = false;
100
- }
101
- }
102
- }
103
- catch (e)
104
- {
105
-
106
- }
107
-
108
- if (_ok && !jestConfig.preset)
109
- {
110
- jestConfig.preset = '@bluelovers/jest-config';
111
- _ok = false;
112
- }
113
-
114
- console.info(`jest.config.preset: ${jestConfig.preset}`);
115
-
116
- module.exports = jestConfig
package/lerna.json.tpl DELETED
@@ -1,46 +0,0 @@
1
- {
2
- "packages": [
3
- "packages/*"
4
- ],
5
- "command": {
6
- "publish": {
7
- "concurrency": 1,
8
- "loglevel": "silly",
9
- "ignoreChanges": [
10
- "**/node_modules/**",
11
- "**/__snapshots__/**",
12
- "**/__fixtures__/**",
13
- "**/test/**",
14
- "**/tests/**",
15
- "**/__tests__/**",
16
- "*.map",
17
- "*.spec.*",
18
- "*.test.*",
19
- "**/test/temp/**",
20
- "lerna.json",
21
- "CHANGELOG.md",
22
- ".gitignore",
23
- ".gitrepo"
24
- ],
25
- "message": "chore(release): publish",
26
- "bump": "patch",
27
- "noPrivate": true,
28
- "conventionalCommits": true,
29
- "conventionalGraduate": false
30
- },
31
- "version": {
32
- "noPrivate": true,
33
- "conventionalCommits": true,
34
- "changelogPreset": "@bluelovers/conventional-changelog-bluelovers"
35
- },
36
- "run": {
37
- "stream": true
38
- },
39
- "exec": {
40
- "stream": true
41
- }
42
- },
43
- "npmClient": "yarn",
44
- "useWorkspaces": true,
45
- "version": "independent"
46
- }
package/now.json.tpl DELETED
@@ -1,23 +0,0 @@
1
- {
2
- "version": 2,
3
- "builds": [
4
- {
5
- "src": "index.js",
6
- "use": "@now/node@canary"
7
- }
8
- ],
9
- "routes": [
10
- {
11
- "headers": {
12
- "Access-Control-Allow-Origin": "*",
13
- "Access-Control-Allow-Methods": "GET, POST, PUT, DELETE, OPTIONS",
14
- "Access-Control-Allow-Headers": "X-Requested-With, Content-Type, Accept"
15
- },
16
- "src": "/.*",
17
- "dest": "/index.js"
18
- }
19
- ],
20
- "env": {
21
- "VERSION": "1.0.0"
22
- }
23
- }
@@ -1,6 +0,0 @@
1
- {
2
- "targets": [
3
- { "extname": ".cjs", "module": "commonjs" },
4
- { "extname": ".mjs", "module": "nodenext" }
5
- ]
6
- }
@@ -1,10 +0,0 @@
1
- {
2
- "extends": "@bluelovers/tsconfig/esm/module.json",
3
- "compilerOptions": {
4
- "sourceRoot": "./lib",
5
- "outDir": "./esm",
6
- "rootDir": "./lib",
7
- "module": "esnext",
8
- "noImplicitAny": true
9
- }
10
- }
package/tsconfig.json.tpl DELETED
@@ -1,6 +0,0 @@
1
- {
2
- "extends": "@bluelovers/tsconfig/esm/mapfile.json",
3
- "compilerOptions": {
4
- "importHelpers": true
5
- }
6
- }
@@ -1 +0,0 @@
1
- {"version":"4.4.0-dev.20210720"}
@@ -1,6 +0,0 @@
1
- {
2
- "extends": "@bluelovers/tsconfig/tsdx/index.json",
3
- "compilerOptions": {
4
- "importHelpers": true,
5
- }
6
- }
@@ -1,14 +0,0 @@
1
- // Not transpiled with TypeScript or Babel, so use plain Es6/Node.js!
2
- module.exports = {
3
-
4
- /**
5
- * This function will run for each entry/format/env combination
6
- */
7
- rollup(config, options) {
8
-
9
- config.output.preferConst = true;
10
-
11
- return config;
12
- },
13
-
14
- };