@roastduck/npm_monorepo_core 1.0.0

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.
@@ -0,0 +1,3 @@
1
+ declare function add(a: number, b: number): number;
2
+ declare function minus(a: number, b: number): number;
3
+ export { add, minus };
package/dist/index.js ADDED
@@ -0,0 +1,7 @@
1
+ function add(a, b) {
2
+ return a + b;
3
+ }
4
+ function minus(a, b) {
5
+ return a - b;
6
+ }
7
+ export { add, minus };
package/package.json ADDED
@@ -0,0 +1,18 @@
1
+ {
2
+ "name": "@roastduck/npm_monorepo_core",
3
+ "version": "1.0.0",
4
+ "description": "",
5
+ "devDependencies": {},
6
+ "scripts": {
7
+ "test": "echo \"Error: no test specified\" && exit 1"
8
+ },
9
+ "keywords": [],
10
+ "author": "",
11
+ "license": "ISC",
12
+ "type": "module",
13
+ "main": "dist/index.js",
14
+ "types": "dist/index.d.ts",
15
+ "publishConfig": {
16
+ "access": "public"
17
+ }
18
+ }
package/src/index.ts ADDED
@@ -0,0 +1,12 @@
1
+ function add(a: number, b: number) {
2
+ return a + b;
3
+ }
4
+
5
+ function minus(a: number, b: number) {
6
+ return a - b;
7
+ }
8
+
9
+ export {
10
+ add,
11
+ minus
12
+ }
package/tsconfig.json ADDED
@@ -0,0 +1,15 @@
1
+ {
2
+ "compilerOptions": {
3
+ "outDir": "dist",
4
+ "rootDir": "src",
5
+ "types": [ "node" ],
6
+ "target": "es2016",
7
+ "module": "NodeNext",
8
+ "moduleResolution": "NodeNext",
9
+ "declaration": true,
10
+ "esModuleInterop": true,
11
+ "forceConsistentCasingInFileNames": true,
12
+ "strict": true,
13
+ "skipLibCheck": true,
14
+ }
15
+ }