rwsdk 1.0.0-beta.1 → 1.0.0-beta.2-test.20250930092748
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/scripts/addon.mjs
CHANGED
|
@@ -35,7 +35,7 @@ export const addon = async () => {
|
|
|
35
35
|
console.error('Could not find "rwsdk" in your dependencies or devDependencies.');
|
|
36
36
|
process.exit(1);
|
|
37
37
|
}
|
|
38
|
-
if (
|
|
38
|
+
if (/^\d/.test(rwsdkVersion)) {
|
|
39
39
|
rwsdkVersion = `v${rwsdkVersion}`;
|
|
40
40
|
}
|
|
41
41
|
const tmpDirPrefix = path.join(os.tmpdir(), `rwsdk-addon-${addonName}-`);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import debug from "debug";
|
|
2
|
-
import { join } from "path";
|
|
2
|
+
import { dirname, join } from "path";
|
|
3
3
|
import { fileURLToPath } from "url";
|
|
4
4
|
import { runSmokeTests } from "../lib/smokeTests/runSmokeTests.mjs";
|
|
5
5
|
import { isRunningInCI } from "../lib/smokeTests/utils.mjs";
|
|
@@ -16,11 +16,13 @@ if (fileURLToPath(import.meta.url) === process.argv[1]) {
|
|
|
16
16
|
// Check for CI flag first
|
|
17
17
|
const ciFlag = args.includes("--ci");
|
|
18
18
|
// Set initial default values (sync will be determined below)
|
|
19
|
+
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
20
|
+
const starterPath = join(__dirname, "..", "..", "..", "starter");
|
|
19
21
|
const options = {
|
|
20
22
|
skipDev: false,
|
|
21
23
|
skipRelease: false,
|
|
22
24
|
skipClient: false,
|
|
23
|
-
projectDir:
|
|
25
|
+
projectDir: starterPath,
|
|
24
26
|
artifactDir: join(process.cwd(), ".artifacts"), // Default to .artifacts in current directory
|
|
25
27
|
keep: isRunningInCI(ciFlag), // Default to true in CI environments
|
|
26
28
|
headless: true,
|