@learncard/helpers 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/dist/index.js +2 -2
  2. package/package.json +5 -2
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
- 'use strict'
1
+ 'use strict';
2
2
 
3
- if(process.env.NODE_ENV === 'production') {
3
+ if (process.env.NODE_ENV === 'production') {
4
4
  module.exports = require('./helpers.cjs.production.min.js');
5
5
  } else {
6
6
  module.exports = require('./helpers.cjs.development.js');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@learncard/helpers",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Shared helpers for LearnCard packages",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/helpers.esm.js",
@@ -18,19 +18,22 @@
18
18
  "url": "https://github.com/learningeconomy/LearnCard/issues"
19
19
  },
20
20
  "devDependencies": {
21
+ "@esbuild-plugins/node-resolve": "^0.1.4",
21
22
  "@types/jest": "^27.5.0",
22
23
  "@types/node": "^18.7.19",
23
24
  "aqu": "0.4.3",
25
+ "dts-bundle-generator": "^6.10.0",
24
26
  "esbuild": "^0.14.38",
25
27
  "esbuild-jest": "^0.5.0",
26
28
  "jest": "^28.1.3",
27
29
  "jest-environment-jsdom": "^28.1.3",
30
+ "shx": "^0.3.4",
28
31
  "ts-jest": "^28.0.5",
29
32
  "typescript": "^4.8.3"
30
33
  },
31
34
  "types": "./dist/helpers.d.ts",
32
35
  "scripts": {
33
- "build": "aqu build",
36
+ "build": "node ./scripts/build.mjs && shx cp ./scripts/mixedEntypoint.js ./dist/index.js && dts-bundle-generator src/index.ts -o dist/helpers.d.ts --no-check",
34
37
  "start": "aqu watch",
35
38
  "lint": "aqu lint",
36
39
  "lint:fix": "aqu lint --fix",