yukichant 3.0.3 → 3.0.4

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,57 @@
1
+ name: Node CI
2
+
3
+ on:
4
+ pull_request:
5
+ branches:
6
+ - master
7
+
8
+ jobs:
9
+ jest:
10
+ runs-on: ubuntu-latest
11
+
12
+ strategy:
13
+ matrix:
14
+ node-version: [ 12.x, 14.x, 16.x ]
15
+
16
+ steps:
17
+ - run: node -v
18
+ - uses: actions/checkout@v2
19
+ - name: Use Node.js ${{ matrix.node-version }}
20
+ uses: actions/setup-node@v2
21
+ with:
22
+ node-version: ${{ matrix.node-version }}
23
+ - run: node -v
24
+ - run: npm ci
25
+ - run: npm test
26
+
27
+ test-on-volta:
28
+ runs-on: ubuntu-latest
29
+
30
+ strategy:
31
+ matrix:
32
+ node-version: [ 12.x, 14.x, 16.x ]
33
+
34
+ steps:
35
+ - uses: actions/checkout@v1
36
+ - uses: volta-cli/action@v1
37
+ with:
38
+ node-version: ${{ matrix.node-version }}
39
+
40
+ - run: node -v
41
+ - uses: actions/checkout@v2
42
+ - name: Use Node.js ${{ matrix.node-version }}
43
+ uses: actions/setup-node@v2
44
+ with:
45
+ node-version: ${{ matrix.node-version }}
46
+
47
+ - name: install yukichant on local
48
+ run: |
49
+ npm install
50
+ npm install -g ../yukichant
51
+
52
+ - name: mkdir sandbox
53
+ run: mkdir -p ./exec_dir
54
+
55
+ - run: chant
56
+ working-directory: ./exec_dir
57
+
package/README.md CHANGED
@@ -48,5 +48,5 @@ Apache-2.0
48
48
 
49
49
  ## Thanks
50
50
  I named "yukichant" by Nagato Yuki-chan + chant .
51
- becouse I want to chant magic words like her.
51
+ because I want to chant magic words like her.
52
52
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yukichant",
3
- "version": "3.0.3",
3
+ "version": "3.0.4",
4
4
  "description": "",
5
5
  "license": "Apache-2.0",
6
6
  "repository": "amanoese/yukichant",
package/src/cli.js CHANGED
@@ -2,7 +2,7 @@
2
2
  import getStdin from 'get-stdin'
3
3
  import chant from './index.js'
4
4
  import fs from 'fs'
5
- const { version } = JSON.parse(fs.readFileSync('package.json', 'utf8'));
5
+ const { version } = JSON.parse(fs.readFileSync(new URL('../package.json', import.meta.url), 'utf8'));
6
6
 
7
7
  import { Command } from 'commander/esm.mjs';
8
8
  const program = new Command();
@@ -1,26 +0,0 @@
1
- name: Node CI
2
-
3
- on:
4
- pull_request:
5
- branches:
6
- - master
7
-
8
- jobs:
9
- build:
10
- name: build
11
- runs-on: ubuntu-latest
12
-
13
- strategy:
14
- matrix:
15
- node-version: [ 12.x, 14.x, 16.x ]
16
-
17
- steps:
18
- - run: node -v
19
- - uses: actions/checkout@v2
20
- - name: Use Node.js ${{ matrix.node-version }}
21
- uses: actions/setup-node@v2
22
- with:
23
- node-version: ${{ matrix.node-version }}
24
- - run: node -v
25
- - run: npm ci
26
- - run: npm test