lumos-language 1.0.6 → 1.0.8

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.
@@ -0,0 +1,33 @@
1
+ name: Node.js Package
2
+
3
+ on:
4
+ release:
5
+ types: [created]
6
+
7
+ jobs:
8
+ build:
9
+ runs-on: ubuntu-latest
10
+ steps:
11
+ - uses: actions/checkout@v4
12
+ - uses: actions/setup-node@v4
13
+ with:
14
+ node-version: 20
15
+ - run: npm ci
16
+ - run: npm test
17
+
18
+ publish-gpr:
19
+ needs: build
20
+ runs-on: ubuntu-latest
21
+ permissions:
22
+ contents: read
23
+ packages: write
24
+ steps:
25
+ - uses: actions/checkout@v4
26
+ - uses: actions/setup-node@v4
27
+ with:
28
+ node-version: 20
29
+ registry-url: https://npm.pkg.github.com/
30
+ - run: npm ci
31
+ - run: npm publish
32
+ env:
33
+ NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
package/README.md CHANGED
@@ -44,6 +44,16 @@ Lumos is influenced by
44
44
  <li><code>break</code></li>
45
45
  <li><code>continue</code></li>
46
46
  </ul>
47
+ - Launch from your terminal:
48
+ <ol>
49
+ <li><code>cd path/to/lumos-language</code></li>
50
+ <li><code>node index.cjs</code></li>
51
+ </ol>
52
+ - Compile on your terminal:
53
+ <ol>
54
+ <li><code>cd path/to/lumos-language</code></li>
55
+ <li><code>node index.cjs main.lumos</code></li>
56
+ </ol>
47
57
 
48
58
  ## Caution
49
59
 
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "lumos-language",
3
- "version": "1.0.6",
3
+ "version": "1.0.8",
4
4
  "description": "Lumos - Interactive CLI",
5
- "main": "index.js",
5
+ "main": "index.cjs",
6
6
  "bin": {
7
- "lumos": "index.js"
7
+ "lumos": "./index.cjs"
8
8
  },
9
9
  "repository": {
10
10
  "type": "git",
@@ -19,7 +19,7 @@
19
19
  "homepage": "https://lumos-language.glitch.me",
20
20
  "author": "Hirotoshi Uchida",
21
21
  "license": "MIT",
22
- "type": "module",
22
+ "type": "commonjs",
23
23
  "scripts": {
24
24
  "test": "lumos"
25
25
  },
@@ -27,6 +27,6 @@
27
27
  "programming-language"
28
28
  ],
29
29
  "dependencies": {
30
- "lumos-language": "^1.0.6"
30
+ "lumos-language": "^1.0.8"
31
31
  }
32
32
  }
File without changes