@mokr/core
Advanced tools
Comparing version 0.0.1-alpha.4 to 0.0.1-alpha.5
@@ -17,3 +17,3 @@ "use strict"; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
@@ -23,3 +23,3 @@ return result; | ||
var __exportStar = (this && this.__exportStar) || function(m, exports) { | ||
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p); | ||
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); | ||
}; | ||
@@ -26,0 +26,0 @@ Object.defineProperty(exports, "__esModule", { value: true }); |
@@ -10,3 +10,3 @@ "use strict"; | ||
var __exportStar = (this && this.__exportStar) || function(m, exports) { | ||
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p); | ||
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); | ||
}; | ||
@@ -13,0 +13,0 @@ Object.defineProperty(exports, "__esModule", { value: true }); |
@@ -10,3 +10,3 @@ "use strict"; | ||
var __exportStar = (this && this.__exportStar) || function(m, exports) { | ||
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p); | ||
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); | ||
}; | ||
@@ -13,0 +13,0 @@ Object.defineProperty(exports, "__esModule", { value: true }); |
@@ -16,12 +16,22 @@ "use strict"; | ||
if (pkg.isProject()) { | ||
pkg.jestConfig.text = `module.exports = {\n | ||
preset: 'ts-jest',\n | ||
testMatch: '**/*.test.(ts|tsx)'\n | ||
}\n | ||
`; | ||
pkg.packageJson.contents.scripts = Object.assign(Object.assign({}, pkg.packageJson.contents.scripts), { test: 'lerna run test', 'watch:test': 'lerna run --parallel watch:test' }); | ||
pkg.jestConfig.text = `module.exports = { | ||
preset: 'ts-jest', | ||
testRegex: 'test.tsx?$', | ||
}\n`; | ||
pkg.packageJson.assign({ | ||
scripts: { | ||
test: 'lerna run test', | ||
'watch:test': 'lerna run --parallel watch:test', | ||
}, | ||
}); | ||
pkg.addDevDependency('jest ts-jest'); | ||
} | ||
else { | ||
pkg.packageJson.contents.scripts = Object.assign(Object.assign({}, pkg.packageJson.contents.scripts), { test: 'jest', 'watch:test': 'jest --watch' }); | ||
pkg.jestConfig.text = `module.exports = require('../../jest.config')\n`; | ||
pkg.packageJson.assign({ | ||
scripts: { | ||
test: 'jest', | ||
'watch:test': 'jest --watch', | ||
}, | ||
}); | ||
} | ||
@@ -28,0 +38,0 @@ }); |
@@ -23,3 +23,4 @@ "use strict"; | ||
declaration: true, | ||
sourceMap: true | ||
declarationMap: true, | ||
sourceMap: true, | ||
}; | ||
@@ -33,4 +34,4 @@ pkg.packageJson.contents.scripts = Object.assign(Object.assign({}, pkg.packageJson.contents.scripts), { build: 'lerna run build', 'watch:build': 'lerna run --parallel watch:build' }); | ||
rootDir: 'src', | ||
outDir: 'lib' | ||
} | ||
outDir: 'lib', | ||
}, | ||
}; | ||
@@ -37,0 +38,0 @@ pkg.packageJson.contents.scripts = Object.assign(Object.assign({}, pkg.packageJson.contents.scripts), { prepublishOnly: 'yarn build', build: 'tsc', 'watch:build': 'tsc --watch' }); |
@@ -10,3 +10,3 @@ "use strict"; | ||
var __exportStar = (this && this.__exportStar) || function(m, exports) { | ||
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p); | ||
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); | ||
}; | ||
@@ -13,0 +13,0 @@ Object.defineProperty(exports, "__esModule", { value: true }); |
{ | ||
"name": "@mokr/core", | ||
"version": "0.0.1-alpha.4", | ||
"version": "0.0.1-alpha.5", | ||
"description": "Core Mokr functions", | ||
@@ -25,5 +25,5 @@ "repository": "https://github.com/hongaar/mokr", | ||
"devDependencies": { | ||
"@types/mkdirp": "1.0.0", | ||
"@types/node": "13.13.9", | ||
"typescript": "3.9.3" | ||
"@types/mkdirp": "1.0.1", | ||
"@types/node": "14.6.3", | ||
"typescript": "4.0.2" | ||
}, | ||
@@ -33,3 +33,3 @@ "publishConfig": { | ||
}, | ||
"gitHead": "70ac69948bd44f39d86a1fa5a002e56f3916330b" | ||
"gitHead": "eb4d704e6415b404e82dcb2ff4c7c5884c02029b" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
83079
1514