@environment-safe/file 0.3.0 → 0.3.1

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/.husky/pre-commit CHANGED
@@ -4,6 +4,7 @@
4
4
  npm run lint
5
5
  npm run path-test
6
6
  npm run headless-browser-path-test
7
+ npm run link-local-moka
7
8
  npm run import-test
8
9
  npm run headless-browser-test
9
10
  #npm run build-commonjs
package/README.md CHANGED
@@ -111,3 +111,5 @@ All work is done in the .mjs files and will be transpiled on commit to commonjs
111
111
 
112
112
  If the above tests pass, then attempt a commit which will generate .d.ts files alongside the `src` files and commonjs classes in `dist`
113
113
 
114
+ In order to run the `import-test`, you must link the local `moka`, which can be done with `npm run link-local-moka` This is normally solved via dependency hoisting except in the case where you are developing on the file API which has a circular dependency with `moka`.
115
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@environment-safe/file",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "type": "module",
5
5
  "main": "dist/index.mjs",
6
6
  "module": "src/index.mjs",
@@ -77,7 +77,7 @@
77
77
  "@environment-safe/chai": "^0.1.0",
78
78
  "@environment-safe/commonjs-builder": "^0.0.3",
79
79
  "@environment-safe/jsdoc-builder": "^0.0.2",
80
- "@open-automaton/moka": "^0.5.0",
80
+ "@open-automaton/moka": "^0.5.1",
81
81
  "babel-plugin-search-and-replace": "^1.1.1",
82
82
  "babel-plugin-transform-import-meta": "^2.2.0",
83
83
  "chai": "^4.3.7",
@@ -110,6 +110,7 @@
110
110
  "container-test": "docker build . -t environment-safe-package.json -f ./containers/test.dockerfile; docker logs --follow \"$(docker run -d environment-safe-package.json)\"",
111
111
  "build-docs": "build-jsdoc docs",
112
112
  "build-types": "build-jsdoc types",
113
+ "link-local-moka":"npm link ../../@open-automaton/moka; cd ../../@open-automaton/moka; npm link ../../@environment-safe/file",
113
114
  "add-generated-files-to-commit": "git add docs/*.md; git add src/*.d.ts; git add dist/*.cjs",
114
115
  "prepare": "husky install"
115
116
  },