Skip to content

Commit

Permalink
Merge pull request #133 from kwonoj/export-env
Browse files Browse the repository at this point in the history
build(release): release 2.0.1
  • Loading branch information
kwonoj authored Jun 10, 2019
2 parents af50366 + 22e8b12 commit 44e970f
Show file tree
Hide file tree
Showing 10 changed files with 3,464 additions and 3,469 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
<a name="2.0.1"></a>
## [2.0.1](https://github.com/kwonoj/cld3-asm/compare/v2.0.0...v2.0.1) (2019-06-10)


### Features

* **index:** reexport environment ([9eae6e9](https://github.com/kwonoj/cld3-asm/commit/9eae6e9))



<a name="2.0.0"></a>
# [2.0.0](https://github.com/kwonoj/cld3-asm/compare/v2.0.0-beta.6...v2.0.0) (2019-03-01)

Expand Down
1 change: 0 additions & 1 deletion examples/electron/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
"noUnusedParameters": true,
"module": "commonjs",
"moduleResolution": "node",
"importHelpers": true,
"pretty": true,
"target": "es5",
"outDir": "dist",
Expand Down
6,865 changes: 3,424 additions & 3,441 deletions package-lock.json

Large diffs are not rendered by default.

37 changes: 18 additions & 19 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cld3-asm",
"version": "2.0.0",
"version": "2.0.1",
"description": "WebAssembly based Javascript bindings for google compact language detector 3",
"main": "./dist/cjs/index.js",
"module": "./dist/esm/index.js",
Expand Down Expand Up @@ -53,37 +53,36 @@
},
"homepage": "https://github.com/kwonoj/cld3-asm#readme",
"devDependencies": {
"@commitlint/cli": "^7.5.2",
"@commitlint/config-angular": "^7.5.0",
"@commitlint/cli": "^8.0.0",
"@commitlint/config-angular": "^8.0.0",
"@types/chai": "^4.1.7",
"@types/jest": "^23.3.14",
"@types/lodash": "^4.14.121",
"@types/node": "^10.12.27",
"@types/shelljs": "^0.8.3",
"@types/jest": "^24.0.13",
"@types/lodash": "^4.14.134",
"@types/node": "^12.0.7",
"@types/shelljs": "^0.8.5",
"@types/utf8": "^2.1.6",
"chai": "^4.2.0",
"commitizen": "3.0.4",
"conventional-changelog-cli": "^2.0.12",
"commitizen": "^3.1.1",
"conventional-changelog-cli": "^2.0.21",
"cz-conventional-changelog": "2.1.0",
"husky": "^1.3.1",
"jest": "^23.6.0",
"husky": "^2.4.0",
"jest": "^24.8.0",
"jest-spin-reporter": "^1.0.2",
"lint-staged": "^8.1.5",
"lint-staged": "^8.2.0",
"lodash": "^4.17.11",
"npm-run-all": "^4.1.5",
"prettier": "^1.16.4",
"prettier": "^1.18.2",
"shelljs": "^0.8.3",
"shx": "^0.3.2",
"ts-jest": "^23.10.5",
"ts-node": "^7.0.1",
"tslint": "^5.13.1",
"ts-jest": "^24.0.2",
"ts-node": "^8.2.0",
"tslint": "^5.17.0",
"tslint-no-unused-expression-chai": "^0.1.4",
"typescript": "^3.3.3333",
"typescript": "^3.5.1",
"utf8": "^3.0.0"
},
"dependencies": {
"emscripten-wasm-loader": "^2.2.3",
"tslib": "^1.9.3"
"emscripten-wasm-loader": "^2.2.3"
},
"husky": {
"hooks": {
Expand Down
2 changes: 1 addition & 1 deletion spec/cld-asm/loadModule-spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { loadModule } from '../../src/loadModule';

const cld3Mock = require('../../src/lib/cld3'); //tslint:disable-line:no-require-imports no-var-requires

jest.mock('../../src/lib/cld3', () => jest.fn(), { virtual: true });
jest.mock('../../src/lib/cld3', () => jest.fn());
jest.mock('../../src/cldLoader');
jest.mock('emscripten-wasm-loader', () => ({
isWasmEnabled: jest.fn(),
Expand Down
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ export { log, enableLogger } from './util/logger';
export { LanguageIdentifier, CldFactory } from './cldFactory';
export { LanguageResult } from './cldAsmModule';
export { LanguageCode } from './languageCode';
export { ENVIRONMENT } from 'emscripten-wasm-loader';
1 change: 1 addition & 0 deletions src/tsconfig.esm.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"extends": "./tsconfig.base.json",
"compilerOptions": {
"module": "esnext",
"target": "es2018",
"outDir": "../dist/esm",
}
}
2 changes: 1 addition & 1 deletion src/tsconfig.types.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"extends": "./tsconfig.esm.json",
"compilerOptions": {
"module": "es2015",
"target": "esnext",
"target": "es2018",
"declaration": true,
"declarationDir": "../dist/types",
"declarationMap": true,
Expand Down
2 changes: 0 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@
"noImplicitAny": true,
"noImplicitReturns": true,
"noImplicitThis": true,
"noEmitHelpers": true,
"noUnusedParameters": true,
"importHelpers": true,
"module": "commonjs",
"moduleResolution": "node",
"noEmit": true,
Expand Down
12 changes: 8 additions & 4 deletions wallaby.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
module.exports = wallaby => ({
files: ['src/**/*.ts', { pattern: 'jest-cld-asm.json', instrument: false, load: true }],
files: [
'src/**/*.ts',
{ pattern: 'jest-cld-asm.json', instrument: false, load: true },
{ pattern: 'src/**/*.js', instrument: false, load: true }
],

tests: ['spec/cld-asm/**/*.ts'],

Expand All @@ -18,10 +22,10 @@ module.exports = wallaby => ({

preprocessors: {
'**/*.js?(x)': file =>
require('babel-core').transform(file.content, {
sourceMap: true,
require('@babel/core').transform(file.content, {
sourceMaps: true,
filename: file.path,
presets: ['babel-preset-jest']
presets: [require('babel-preset-jest')]
})
},

Expand Down

0 comments on commit 44e970f

Please sign in to comment.