screw-up 0.14.0 → 0.15.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/dist/analyzer.d.ts +2 -2
- package/dist/cli-internal.d.ts +2 -2
- package/dist/cli-internal.d.ts.map +1 -1
- package/dist/cli.d.ts +2 -2
- package/dist/generated/packageMetadata.d.ts +4 -4
- package/dist/index.cjs +3 -3
- package/dist/index.d.ts +2 -2
- package/dist/index.js +3 -3
- package/dist/{internal-BHSe5LIZ.cjs → internal-DoM-p19R.cjs} +15 -8
- package/dist/{internal-BHSe5LIZ.cjs.map → internal-DoM-p19R.cjs.map} +1 -1
- package/dist/{internal-BgCvktPU.js → internal-Dy8K0duL.js} +15 -8
- package/dist/{internal-BgCvktPU.js.map → internal-Dy8K0duL.js.map} +1 -1
- package/dist/internal.d.ts +6 -3
- package/dist/internal.d.ts.map +1 -1
- package/dist/main.cjs +11 -5
- package/dist/main.cjs.map +1 -1
- package/dist/main.d.ts +2 -2
- package/dist/main.js +11 -5
- package/dist/main.js.map +1 -1
- package/dist/{packageMetadata-D9nXAoK9.cjs → packageMetadata-B4rW4ext.cjs} +4 -4
- package/dist/{packageMetadata-D9nXAoK9.cjs.map → packageMetadata-B4rW4ext.cjs.map} +1 -1
- package/dist/{packageMetadata-Dsxn2dKN.js → packageMetadata-svUXyND1.js} +4 -4
- package/dist/{packageMetadata-Dsxn2dKN.js.map → packageMetadata-svUXyND1.js.map} +1 -1
- package/dist/types.d.ts +2 -2
- package/dist/vite-plugin.d.ts +2 -2
- package/package.json +6 -6
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* name: screw-up
|
|
3
|
-
* version: 0.
|
|
3
|
+
* version: 0.15.0
|
|
4
4
|
* description: Simply package metadata inserter on Vite plugin
|
|
5
5
|
* author: Kouji Matsui (@kekyo@mi.kekyo.net)
|
|
6
6
|
* license: MIT
|
|
7
7
|
* repository.url: https://github.com/kekyo/screw-up.git
|
|
8
|
-
* git.commit.hash:
|
|
8
|
+
* git.commit.hash: 63679526c0d6c7819c2b3e78d96ac3e2c8fc0d46
|
|
9
9
|
*/
|
|
10
10
|
import * as fs from "fs";
|
|
11
11
|
import { existsSync } from "fs";
|
|
@@ -1719,7 +1719,7 @@ const findWorkspaceRoot = async (startPath, logger) => {
|
|
|
1719
1719
|
}
|
|
1720
1720
|
return void 0;
|
|
1721
1721
|
};
|
|
1722
|
-
const collectWorkspaceSiblings = async (workspaceRoot, logger) => {
|
|
1722
|
+
const collectWorkspaceSiblings = async (workspaceRoot, checkWorkingDirectoryStatus, alwaysOverrideVersionFromGit, inheritableFields, logger) => {
|
|
1723
1723
|
const siblings = /* @__PURE__ */ new Map();
|
|
1724
1724
|
try {
|
|
1725
1725
|
const rootPackageJsonPath = join(workspaceRoot, "package.json");
|
|
@@ -1740,17 +1740,24 @@ const collectWorkspaceSiblings = async (workspaceRoot, logger) => {
|
|
|
1740
1740
|
const packageJsonPath = join(workspaceRoot, workspaceDir, "package.json");
|
|
1741
1741
|
if (existsSync(packageJsonPath)) {
|
|
1742
1742
|
try {
|
|
1743
|
-
const
|
|
1744
|
-
const
|
|
1743
|
+
const packagePath = join(workspaceRoot, workspaceDir);
|
|
1744
|
+
const resolvedPackage = await resolveRawPackageJsonObject(
|
|
1745
|
+
packagePath,
|
|
1746
|
+
checkWorkingDirectoryStatus,
|
|
1747
|
+
alwaysOverrideVersionFromGit,
|
|
1748
|
+
inheritableFields,
|
|
1749
|
+
logger
|
|
1750
|
+
);
|
|
1751
|
+
const packageJson = resolvedPackage.metadata;
|
|
1745
1752
|
if (packageJson.name && packageJson.version) {
|
|
1746
1753
|
siblings.set(packageJson.name, {
|
|
1747
1754
|
name: packageJson.name,
|
|
1748
1755
|
version: packageJson.version,
|
|
1749
|
-
path:
|
|
1756
|
+
path: packagePath
|
|
1750
1757
|
});
|
|
1751
1758
|
}
|
|
1752
1759
|
} catch (error) {
|
|
1753
|
-
logger.warn(`Failed to
|
|
1760
|
+
logger.warn(`Failed to resolve package.json from ${packageJsonPath}: ${error}`);
|
|
1754
1761
|
}
|
|
1755
1762
|
}
|
|
1756
1763
|
}
|
|
@@ -1912,4 +1919,4 @@ export {
|
|
|
1912
1919
|
findWorkspaceRoot as f,
|
|
1913
1920
|
resolvePackageMetadata as r
|
|
1914
1921
|
};
|
|
1915
|
-
//# sourceMappingURL=internal-
|
|
1922
|
+
//# sourceMappingURL=internal-Dy8K0duL.js.map
|