@8ms/helpers 1.1.49 → 1.1.50

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.
@@ -1,4 +1,6 @@
1
- on: push
1
+ on:
2
+ push:
3
+ branches: [ main ]
2
4
 
3
5
  jobs:
4
6
  publish:
@@ -7,9 +9,9 @@ jobs:
7
9
  - uses: actions/checkout@v3
8
10
  - uses: actions/setup-node@v3
9
11
  with:
10
- node-version: 12
11
- - run: npm install
12
- - run: npm test
12
+ node-version: 16
13
+ - run: yarn
14
+ - run: yarn build
13
15
  - uses: JS-DevTools/npm-publish@v1
14
16
  with:
15
17
  token: ${{ secrets.NPM_TOKEN }}
@@ -0,0 +1,2 @@
1
+ declare const test: () => string;
2
+ export default test;
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ var test = function () {
4
+ var moment = require('moment');
5
+ var subtest = moment().format();
6
+ return subtest;
7
+ };
8
+ exports.default = test;
package/package.json CHANGED
@@ -1,36 +1,40 @@
1
1
  {
2
- "name": "@8ms/helpers",
3
- "version": "1.1.49",
4
- "repository": {
5
- "type": "git",
6
- "url": "git+https://github.com/8millionstories-organisation/8ms-helpers-ts.git"
7
- },
8
- "main": "dist/index.js",
9
- "types": "dist/index.d.ts",
10
- "scripts": {
11
- "build": "rimraf dist && tsc",
12
- "jest": "jest --watch"
13
- },
14
- "dependencies": {
15
- "axios": "0.27.2",
16
- "date-fns": "2.28.0",
17
- "date-fns-tz": "1.3.4",
18
- "lodash": "4.17.21"
19
- },
20
- "devDependencies": {
21
- "@babel/preset-env": "7.18.2",
22
- "@babel/preset-flow": "7.17.12",
23
- "@babel/preset-typescript": "7.17.12",
24
- "@google-cloud/storage": "6.1.0",
25
- "@types/jest": "27.5.1",
26
- "@types/lodash": "4.14.182",
27
- "@types/node": "17.0.35",
28
- "babel-jest": "28.1.0",
29
- "crypto-js": "4.1.1",
30
- "jest": "28.1.0",
31
- "timezone-mock": "1.3.2",
32
- "ts-node": "10.8.0",
33
- "tslib": "2.4.0",
34
- "typescript": "4.7.2"
35
- }
2
+ "name": "@8ms/helpers",
3
+ "license": "proprietary",
4
+ "version": "1.1.50",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "git+https://github.com/8millionstories-organisation/8ms-helpers-ts.git"
8
+ },
9
+ "main": "dist/index.js",
10
+ "types": "dist/index.d.ts",
11
+ "scripts": {
12
+ "build": "rimraf dist && tsc",
13
+ "jest": "jest --watch"
14
+ },
15
+ "dependencies": {
16
+ "axios": "0.27.2",
17
+ "date-fns": "2.28.0",
18
+ "date-fns-tz": "1.3.4",
19
+ "lodash": "4.17.21"
20
+ },
21
+ "devDependencies": {
22
+ "@babel/preset-env": "7.18.2",
23
+ "@babel/preset-flow": "7.17.12",
24
+ "@babel/preset-typescript": "7.17.12",
25
+ "@google-cloud/storage": "6.1.0",
26
+ "@types/jest": "27.5.1",
27
+ "@types/lodash": "4.14.182",
28
+ "@types/node": "17.0.35",
29
+ "babel-jest": "28.1.0",
30
+ "crypto-js": "4.1.1",
31
+ "jest": "28.1.0",
32
+ "timezone-mock": "1.3.2",
33
+ "ts-node": "10.8.0",
34
+ "tslib": "2.4.0",
35
+ "typescript": "4.7.2"
36
+ },
37
+ "optionalDependencies": {
38
+ "moment": "2.29.4"
39
+ }
36
40
  }