@tutorialkit-rb/cli 0.1.4 → 0.1.5

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/index.js CHANGED
@@ -14,7 +14,7 @@ import "yargs-parser";
14
14
  // package.json
15
15
  var package_default = {
16
16
  name: "@tutorialkit-rb/cli",
17
- version: "0.1.4",
17
+ version: "0.1.5",
18
18
  description: "Interactive tutorials powered by WebContainer API",
19
19
  author: "StackBlitz Inc.",
20
20
  type: "module",
@@ -952,6 +952,24 @@ async function copyTemplate(dest, flags) {
952
952
  await fsPromises.copyFile(sourceFilePath, destFilePath);
953
953
  }
954
954
  }
955
+ await setExecutablePermissions(dest);
956
+ }
957
+ async function setExecutablePermissions(dest) {
958
+ const binScripts = [
959
+ path7.join(dest, "bin", "build-wasm"),
960
+ path7.join(dest, "ruby-wasm", "bin", "pack"),
961
+ // Node.js wrapper scripts for Rails in WebContainer
962
+ path7.join(dest, "src", "templates", "default", "bin", "rails"),
963
+ path7.join(dest, "src", "templates", "default", "bin", "ruby"),
964
+ path7.join(dest, "src", "templates", "default", "bin", "console"),
965
+ path7.join(dest, "src", "templates", "default", "bin", "rackup")
966
+ ];
967
+ for (const script of binScripts) {
968
+ try {
969
+ await fsPromises.chmod(script, 493);
970
+ } catch {
971
+ }
972
+ }
955
973
  }
956
974
  function readIgnoreFile() {
957
975
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tutorialkit-rb/cli",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
4
4
  "description": "Interactive tutorials powered by WebContainer API",
5
5
  "author": "StackBlitz Inc.",
6
6
  "type": "module",
@@ -15,7 +15,7 @@
15
15
  "@codemirror/lang-yaml": "^6.1.2",
16
16
  "@codemirror/legacy-modes": "^6.5.1",
17
17
  "@nanostores/react": "0.7.2",
18
- "@tutorialkit-rb/react": "0.1.4",
18
+ "@tutorialkit-rb/react": "0.1.5",
19
19
  "nanostores": "^0.10.3",
20
20
  "react": "^18.3.1",
21
21
  "react-dom": "^18.3.1"
@@ -23,9 +23,9 @@
23
23
  "devDependencies": {
24
24
  "@astrojs/check": "^0.7.0",
25
25
  "@astrojs/react": "^3.6.0",
26
- "@tutorialkit-rb/astro": "0.1.4",
27
- "@tutorialkit-rb/theme": "0.1.4",
28
- "@tutorialkit-rb/types": "0.1.4",
26
+ "@tutorialkit-rb/astro": "0.1.5",
27
+ "@tutorialkit-rb/theme": "0.1.5",
28
+ "@tutorialkit-rb/types": "0.1.5",
29
29
  "@types/mdast": "^4.0.4",
30
30
  "@types/node": "^20.14.6",
31
31
  "@types/react": "^18.3.3",