@openmrs/esm-dispensing-app 1.0.0-pre.56 → 1.0.1-pre.58
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/.eslintrc +29 -1
- package/.github/workflows/node.js.yml +21 -5
- package/package.json +1 -4
package/.eslintrc
CHANGED
|
@@ -1,4 +1,32 @@
|
|
|
1
1
|
{
|
|
2
|
+
"extends": ["ts-react-important-stuff", "plugin:prettier/recommended"],
|
|
2
3
|
"parser": "@typescript-eslint/parser",
|
|
3
|
-
"
|
|
4
|
+
"ignorePatterns": ["**/*.test.tsx"],
|
|
5
|
+
"rules": {
|
|
6
|
+
"no-restricted-imports": [
|
|
7
|
+
"error",
|
|
8
|
+
{
|
|
9
|
+
"paths": [
|
|
10
|
+
{
|
|
11
|
+
"name": "lodash",
|
|
12
|
+
"message": "Import specific methods from `lodash-es`. e.g. `import map from 'lodash-es/map'`"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"name": "lodash-es",
|
|
16
|
+
"message": "Import specific methods from `lodash-es`. e.g. `import map from 'lodash-es/map'`"
|
|
17
|
+
}
|
|
18
|
+
],
|
|
19
|
+
"patterns": [
|
|
20
|
+
{
|
|
21
|
+
"group": ["carbon-components-react"],
|
|
22
|
+
"message": "Import from `@carbon/react` directly. e.g. `import { Toggle } from '@carbon/react'`"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"group": ["@carbon/icons-react"],
|
|
26
|
+
"message": "Import from `@carbon/react/icons`. e.g. `import { ChevronUp } from '@carbon/react/icons'`"
|
|
27
|
+
}
|
|
28
|
+
]
|
|
29
|
+
}
|
|
30
|
+
]
|
|
31
|
+
}
|
|
4
32
|
}
|
|
@@ -22,7 +22,7 @@ jobs:
|
|
|
22
22
|
- name: Use Node.js
|
|
23
23
|
uses: actions/setup-node@v1
|
|
24
24
|
with:
|
|
25
|
-
node-version: "
|
|
25
|
+
node-version: "18"
|
|
26
26
|
- run: yarn
|
|
27
27
|
- run: yarn lint
|
|
28
28
|
- run: yarn coverage
|
|
@@ -49,10 +49,11 @@ jobs:
|
|
|
49
49
|
- name: Use Node.js
|
|
50
50
|
uses: actions/setup-node@v1
|
|
51
51
|
with:
|
|
52
|
-
node-version: "
|
|
52
|
+
node-version: "18"
|
|
53
53
|
registry-url: "https://registry.npmjs.org"
|
|
54
|
-
- run: yarn
|
|
55
|
-
- run:
|
|
54
|
+
- run: yarn install --immuatable
|
|
55
|
+
- run: yarn version --new-version "$(node -e "console.log(require('semver').inc(require('./package.json').version, 'patch'))")-pre.${{ github.run_number }}" --no-git-tag-version
|
|
56
|
+
- run: yarn build
|
|
56
57
|
- run: yarn publish --access public --tag next
|
|
57
58
|
env:
|
|
58
59
|
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
|
|
@@ -71,9 +72,24 @@ jobs:
|
|
|
71
72
|
- name: Use Node.js
|
|
72
73
|
uses: actions/setup-node@v1
|
|
73
74
|
with:
|
|
74
|
-
node-version: "
|
|
75
|
+
node-version: "18"
|
|
75
76
|
registry-url: 'https://registry.npmjs.org'
|
|
76
77
|
- run: yarn
|
|
77
78
|
- run: yarn publish --access public
|
|
78
79
|
env:
|
|
79
80
|
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
|
|
81
|
+
|
|
82
|
+
deploy:
|
|
83
|
+
runs-on: ubuntu-latest
|
|
84
|
+
|
|
85
|
+
needs: pre_release
|
|
86
|
+
|
|
87
|
+
if: ${{ github.event_name == 'push' }}
|
|
88
|
+
|
|
89
|
+
steps:
|
|
90
|
+
- name: Trigger RefApp Build
|
|
91
|
+
uses: fjogeleit/http-request-action@master
|
|
92
|
+
with:
|
|
93
|
+
url: https://ci.openmrs.org/rest/api/latest/queue/REFAPP-D3X
|
|
94
|
+
method: "POST"
|
|
95
|
+
customHeaders: '{ "Authorization": "Bearer ${{ secrets.BAMBOO_TOKEN }}" }'
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openmrs/esm-dispensing-app",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1-pre.58",
|
|
4
4
|
"license": "MPL-2.0",
|
|
5
5
|
"description": "Medication dispensing application",
|
|
6
6
|
"browser": "dist/openmrs-esm-dispensing-app.js",
|
|
@@ -88,8 +88,5 @@
|
|
|
88
88
|
"react-router-dom": "^6.3.0",
|
|
89
89
|
"rxjs": "^6.5.4",
|
|
90
90
|
"typescript": "^4.3.2"
|
|
91
|
-
},
|
|
92
|
-
"resolutions": {
|
|
93
|
-
"**/@types/react": "^18.0.14"
|
|
94
91
|
}
|
|
95
92
|
}
|