Compare commits
2 Commits
1e8a3b98dd
...
c1fee4f028
Author | SHA1 | Date | |
---|---|---|---|
c1fee4f028 | |||
bfb4dc391e |
@ -1,3 +1,3 @@
|
|||||||
node_modules
|
node_modules
|
||||||
|
|
||||||
dist
|
dist
|
||||||
|
build
|
2
.gitignore
vendored
2
.gitignore
vendored
@ -12,4 +12,6 @@
|
|||||||
# Error File
|
# Error File
|
||||||
yarn-error.log
|
yarn-error.log
|
||||||
|
|
||||||
|
/build
|
||||||
|
/dist
|
||||||
|
|
||||||
|
@ -1 +1,3 @@
|
|||||||
node_modules
|
node_modules
|
||||||
|
dist
|
||||||
|
build
|
2
dist/index.d.ts
vendored
2
dist/index.d.ts
vendored
@ -1,2 +0,0 @@
|
|||||||
export { default as power } from "./sample";
|
|
||||||
export { default as sqrt } from "./sample2";
|
|
10
dist/index.js
vendored
10
dist/index.js
vendored
@ -1,10 +0,0 @@
|
|||||||
"use strict";
|
|
||||||
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
||||||
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
||||||
};
|
|
||||||
Object.defineProperty(exports, "__esModule", { value: true });
|
|
||||||
exports.sqrt = exports.power = void 0;
|
|
||||||
var sample_1 = require("./sample");
|
|
||||||
Object.defineProperty(exports, "power", { enumerable: true, get: function () { return __importDefault(sample_1).default; } });
|
|
||||||
var sample2_1 = require("./sample2");
|
|
||||||
Object.defineProperty(exports, "sqrt", { enumerable: true, get: function () { return __importDefault(sample2_1).default; } });
|
|
2
dist/sample.d.ts
vendored
2
dist/sample.d.ts
vendored
@ -1,2 +0,0 @@
|
|||||||
declare const power: (n?: number | undefined) => number | undefined;
|
|
||||||
export default power;
|
|
12
dist/sample.js
vendored
12
dist/sample.js
vendored
@ -1,12 +0,0 @@
|
|||||||
"use strict";
|
|
||||||
Object.defineProperty(exports, "__esModule", { value: true });
|
|
||||||
var power = function (n) {
|
|
||||||
if (typeof n === "undefined" || n === null) {
|
|
||||||
return undefined;
|
|
||||||
}
|
|
||||||
if (typeof n !== "number") {
|
|
||||||
return undefined;
|
|
||||||
}
|
|
||||||
return Math.pow(n, 2);
|
|
||||||
};
|
|
||||||
exports.default = power;
|
|
2
dist/sample2.d.ts
vendored
2
dist/sample2.d.ts
vendored
@ -1,2 +0,0 @@
|
|||||||
declare const sqrt: (n: number) => number | undefined;
|
|
||||||
export default sqrt;
|
|
12
dist/sample2.js
vendored
12
dist/sample2.js
vendored
@ -1,12 +0,0 @@
|
|||||||
"use strict";
|
|
||||||
Object.defineProperty(exports, "__esModule", { value: true });
|
|
||||||
var sqrt = function (n) {
|
|
||||||
if (typeof n === "undefined" || n === null) {
|
|
||||||
return undefined;
|
|
||||||
}
|
|
||||||
if (typeof n !== "number") {
|
|
||||||
return undefined;
|
|
||||||
}
|
|
||||||
return Math.sqrt(n);
|
|
||||||
};
|
|
||||||
exports.default = sqrt;
|
|
@ -10,14 +10,13 @@
|
|||||||
"keywords": ["javascript","typescript", "boilerplate","library"],
|
"keywords": ["javascript","typescript", "boilerplate","library"],
|
||||||
|
|
||||||
"repository": {
|
"repository": {
|
||||||
"url": "https://git.cubetiqs.com/s.long/js-lib-boilerplate"
|
"url": "https://git.cubetiqs.com/CUBETIQ/library-boilerplate.git"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "tsc",
|
"build": "tsc",
|
||||||
"test": "jest",
|
"test": "jest",
|
||||||
"build:test": "yarn jest && yarn build",
|
"build:test": "yarn jest && yarn build",
|
||||||
"publish": "yarn build:test && npm publish --registry https://npm.osa.cubetiqs.com",
|
"pub": "npm publish --access public",
|
||||||
|
|
||||||
"run:example": "cd example && yarn start"
|
"run:example": "cd example && yarn start"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
5242
yarn-error.log
5242
yarn-error.log
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user