@storm-software/workspace-tools 1.32.0 → 1.33.0
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 +14 -0
- package/README.md +1 -1
- package/index.js +7 -7
- package/meta.json +1 -1
- package/package.json +1 -1
- package/src/base/index.js +4 -4
- package/src/executors/design-tokens/executor.js +4 -4
- package/src/executors/tsup/executor.js +7 -7
- package/src/executors/tsup-browser/executor.js +7 -7
- package/src/executors/tsup-neutral/executor.js +7 -7
- package/src/executors/tsup-node/executor.js +7 -7
- package/src/generators/browser-library/generator.js +4 -4
- package/src/generators/config-schema/generator.js +4 -4
- package/src/generators/neutral-library/generator.js +4 -4
- package/src/generators/node-library/generator.js +4 -4
- package/src/generators/preset/generator.js +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## [1.32.1](https://github.com/storm-software/storm-ops/compare/workspace-tools-v1.32.0...workspace-tools-v1.32.1) (2023-12-21)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **config-tools:** Remove unused dependencies ([ef00034](https://github.com/storm-software/storm-ops/commit/ef00034e8a79b81147056ee32a12eaa991a0d4f3))
|
|
7
|
+
|
|
8
|
+
# [1.32.0](https://github.com/storm-software/storm-ops/compare/workspace-tools-v1.31.17...workspace-tools-v1.32.0) (2023-12-21)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Features
|
|
12
|
+
|
|
13
|
+
* **config-tools:** Publish `findWorkspaceRoot` and `findWorkspaceRootSafe` to package ([e5302ed](https://github.com/storm-software/storm-ops/commit/e5302edc6ceff492f8274b8d48d7c74a5f7a72c7))
|
|
14
|
+
|
|
1
15
|
## [1.31.17](https://github.com/storm-software/storm-ops/compare/workspace-tools-v1.31.16...workspace-tools-v1.31.17) (2023-12-21)
|
|
2
16
|
|
|
3
17
|
|
package/README.md
CHANGED
|
@@ -16,7 +16,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
|
|
|
16
16
|
|
|
17
17
|
<h3 align="center">💻 Visit <a href="https://stormsoftware.org" target="_blank">stormsoftware.org</a> to stay up to date with this developer</h3><br />
|
|
18
18
|
|
|
19
|
-
[](https://prettier.io/)
|
|
20
20
|
[](http://nx.dev/) [](https://nextjs.org/) [](http://commitizen.github.io/cz-cli/)  [](https://docusaurus.io/) 
|
|
21
21
|
|
|
22
22
|
<h3 align="center" bold="true">⚠️ <b>Attention</b> ⚠️ This repository, and the apps, libraries, and tools contained within, is still in it's initial development phase. As a result, bugs and issues are expected with it's usage. When the main development phase completes, a proper release will be performed, the packages will be availible through NPM (and other distributions), and this message will be removed. However, in the meantime, please feel free to report any issues you may come across.</h3><br />
|
package/index.js
CHANGED
|
@@ -49288,7 +49288,7 @@ var require_dist2 = __commonJS({
|
|
|
49288
49288
|
}
|
|
49289
49289
|
}
|
|
49290
49290
|
var req = false ? createRequire(import_meta.url) : require;
|
|
49291
|
-
var
|
|
49291
|
+
var findUp2 = (name, startDir, stopDir = import_path5.default.parse(startDir).root) => {
|
|
49292
49292
|
let dir = startDir;
|
|
49293
49293
|
while (dir !== stopDir) {
|
|
49294
49294
|
const file = import_path5.default.join(dir, name);
|
|
@@ -49306,13 +49306,13 @@ var require_dist2 = __commonJS({
|
|
|
49306
49306
|
var resolveTsConfigFromFile = (cwd, filename) => {
|
|
49307
49307
|
if (import_path5.default.isAbsolute(filename))
|
|
49308
49308
|
return import_fs5.default.existsSync(filename) ? filename : null;
|
|
49309
|
-
return
|
|
49309
|
+
return findUp2(filename, cwd);
|
|
49310
49310
|
};
|
|
49311
49311
|
var resolveTsConfigFromExtends = (cwd, name) => {
|
|
49312
49312
|
if (import_path5.default.isAbsolute(name))
|
|
49313
49313
|
return import_fs5.default.existsSync(name) ? name : null;
|
|
49314
49314
|
if (name.startsWith("."))
|
|
49315
|
-
return
|
|
49315
|
+
return findUp2(name, cwd);
|
|
49316
49316
|
const id = req.resolve(name, { paths: [cwd] });
|
|
49317
49317
|
return id;
|
|
49318
49318
|
};
|
|
@@ -106487,15 +106487,15 @@ var rootFiles = [
|
|
|
106487
106487
|
"pnpm-lock.yml",
|
|
106488
106488
|
"bun.lockb"
|
|
106489
106489
|
];
|
|
106490
|
-
function
|
|
106490
|
+
function findWorkspaceRootSafeSync(pathInsideMonorepo) {
|
|
106491
106491
|
return process.env.STORM_WORKSPACE_ROOT ? process.env.STORM_WORKSPACE_ROOT : process.env.NX_WORKSPACE_ROOT_PATH ? process.env.NX_WORKSPACE_ROOT_PATH : findUpSync(rootFiles, {
|
|
106492
106492
|
cwd: pathInsideMonorepo ?? process.cwd(),
|
|
106493
106493
|
type: "file",
|
|
106494
106494
|
limit: 1
|
|
106495
106495
|
});
|
|
106496
106496
|
}
|
|
106497
|
-
function
|
|
106498
|
-
const result =
|
|
106497
|
+
function findWorkspaceRootSync(pathInsideMonorepo) {
|
|
106498
|
+
const result = findWorkspaceRootSafeSync(pathInsideMonorepo);
|
|
106499
106499
|
if (!result) {
|
|
106500
106500
|
throw new Error(
|
|
106501
106501
|
`Cannot find workspace root upwards from known path. Files search list includes:
|
|
@@ -110179,7 +110179,7 @@ var getDefaultConfig = (config = {}, root) => {
|
|
|
110179
110179
|
let repository = "https://github.com/storm-software/storm-stack";
|
|
110180
110180
|
let license = DefaultStormConfig.license;
|
|
110181
110181
|
let homepage = DefaultStormConfig.homepage;
|
|
110182
|
-
const workspaceRoot =
|
|
110182
|
+
const workspaceRoot = findWorkspaceRootSync(root);
|
|
110183
110183
|
if ((0, import_fs.existsSync)((0, import_path.join)(workspaceRoot, "package.json"))) {
|
|
110184
110184
|
const file = (0, import_fs.readFileSync)((0, import_path.join)(workspaceRoot, "package.json"), {
|
|
110185
110185
|
encoding: "utf-8"
|