Skip to content
This repository was archived by the owner on Jan 30, 2023. It is now read-only.

Commit defb5c1

Browse files
authored
Merge pull request #208 from smartprocure/feature/misc-fixes
Misc fixes and cleanup
2 parents b9874a2 + b74bb90 commit defb5c1

File tree

9 files changed

+25
-75
lines changed

9 files changed

+25
-75
lines changed

.gitignore

Lines changed: 4 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -1,69 +1,15 @@
1-
# Logs
2-
logs
3-
*.log
4-
npm-debug.log*
5-
yarn-debug.log*
6-
yarn-error.log*
7-
8-
# Runtime data
9-
pids
10-
*.pid
11-
*.seed
12-
*.pid.lock
13-
14-
# Directory for instrumented libs generated by jscoverage/JSCover
15-
lib-cov
16-
17-
# Coverage directory used by tools like istanbul
18-
coverage
19-
20-
# nyc test coverage
21-
.nyc_output
22-
23-
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
24-
.grunt
25-
26-
# Bower dependency directory (https://bower.io/)
27-
bower_components
28-
29-
# node-waf configuration
30-
.lock-wscript
31-
32-
# Compiled binary addons (http://nodejs.org/api/addons.html)
33-
build/Release
34-
351
# Dependency directories
362
node_modules/
37-
jspm_packages/
38-
39-
# Typescript v1 declaration files
40-
typings/
41-
42-
# Optional npm cache directory
43-
.npm
44-
45-
# Optional eslint cache
46-
.eslintcache
47-
48-
# Optional REPL history
49-
.node_repl_history
50-
51-
# Output of 'npm pack'
52-
*.tgz
53-
54-
# Yarn Integrity file
55-
.yarn-integrity
56-
57-
# dotenv environment variables file
58-
.env
593

4+
# Build output
605
dist/*
616

7+
# Duti stuff
628
test-results.json
639
lint-results.json
6410

65-
# yarn stuff
66-
# see https://yarnpkg.com/getting-started/qa#which-files-should-be-gitignored
11+
# Yarn stuff: https://yarnpkg.com/getting-started/qa#which-files-should-be-gitignored
12+
.pnp.*
6713
.yarn/*
6814
!.yarn/patches
6915
!.yarn/plugins

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# 2.49.7
2+
3+
- Misc fixes and cleanup
4+
15
# 2.49.6
26

37
- Format source with prettier

jest.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* https://jestjs.io/docs/configuration */
22
export default {
3-
testMatch: ['<rootDir>/test/**/*.js'],
3+
testMatch: ['<rootDir>/src/**/*.test.js'],
44
transform: {
55
'^.+\\.js?$': ['esbuild-jest', { sourcemap: true, target: 'es2022' }],
66
},

package.json

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
11
{
22
"name": "contexture-client",
3-
"version": "2.49.6",
3+
"version": "2.49.7",
44
"description": "The Contexture (aka ContextTree) Client",
55
"type": "module",
66
"main": "dist/cjs/index.js",
7-
"module": "dist/esm/index.js",
7+
"exports": {
8+
".": {
9+
"import": "./dist/esm/index.js",
10+
"require": "./dist/cjs/index.js"
11+
}
12+
},
813
"files": [
914
"./dist"
1015
],

test/_mobx.js renamed to src/_mobx.test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
// DO NOT RENAME THIS FILE... because we need it to run before the other tests...
22
// No, we don't know why. We're sorry. #hackathon
33

4-
import { Tree } from '../src/util/tree.js'
4+
import { Tree } from './util/tree.js'
55
import F from 'futil'
66
import _ from 'lodash/fp.js'
7-
import ContextureClient from '../src/index.js'
8-
import mockService from '../src/mockService.js'
7+
import ContextureClient from './index.js'
8+
import mockService from './mockService.js'
99
import { observable, reaction, autorun, toJS, set } from 'mobx'
1010

1111
let mobxAdapter = { snapshot: toJS, extend: set, initObject: observable }

test/index.js renamed to src/index.test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import _ from 'lodash/fp.js'
2-
import ContextureClient, { encode, exampleTypes } from '../src/index.js'
2+
import ContextureClient, { encode, exampleTypes } from './index.js'
33
import Promise from 'bluebird'
4-
import mockService from '../src/mockService.js'
5-
import wrap from '../src/actions/wrap.js'
4+
import mockService from './mockService.js'
5+
import wrap from './actions/wrap.js'
66
import { observable, toJS, set } from 'mobx'
77

88
let mobxAdapter = { snapshot: toJS, extend: set, initObject: observable }

test/listeners.js renamed to src/listeners.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import _ from 'lodash/fp.js'
2-
import ContextureClient from '../src/index.js'
3-
import mockService from '../src/mockService.js'
2+
import ContextureClient from './index.js'
3+
import mockService from './mockService.js'
44
import { observable, toJS, set } from 'mobx'
55

66
let mobxAdapter = { snapshot: toJS, extend: set, initObject: observable }

test/tree.js renamed to src/util/tree.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { flatten, encode, isParent } from '../src/util/tree.js'
1+
import { flatten, encode, isParent } from './tree.js'
22

33
describe('tree', () => {
44
let tree = {

test/.eslintrc

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)