reef-knot 0.0.0 → 0.0.1
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.
- package/.turbo/turbo-build.log +7 -0
- package/LICENSE.txt +21 -0
- package/README.md +0 -0
- package/dist/cjs/index.d.ts +3 -0
- package/dist/cjs/index.d.ts.map +1 -0
- package/dist/cjs/index.js +21 -0
- package/dist/esm/index.d.ts +3 -0
- package/dist/esm/index.d.ts.map +1 -0
- package/dist/esm/index.js +2 -0
- package/package.json +18 -4
- package/rollup.config.js +62 -0
- package/src/index.ts +2 -0
- package/tsconfig.json +5 -0
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
$ rollup -c
|
|
2
|
+
[36m
|
|
3
|
+
[1m./src/index[22m → [1mdist/cjs, dist/esm[22m...[39m
|
|
4
|
+
(node:2297) [DEP0148] DeprecationWarning: Use of deprecated folder mapping "./" in the "exports" field module resolution of the package at /home/runner/work/reef-knot/reef-knot/node_modules/tslib/package.json.
|
|
5
|
+
Update this package.json to use a subpath pattern like "./*".
|
|
6
|
+
(Use `node --trace-deprecation ...` to show where the warning was created)
|
|
7
|
+
[32mcreated [1mdist/cjs, dist/esm[22m in [1m5.6s[22m[39m
|
package/LICENSE.txt
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2021 Lido
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,iCAAiC,CAAC;AAChD,cAAc,uBAAuB,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var connectWalletModal = require('@reef-knot/connect-wallet-modal');
|
|
6
|
+
var web3React = require('@reef-knot/web3-react');
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
Object.keys(connectWalletModal).forEach(function (k) {
|
|
11
|
+
if (k !== 'default' && !exports.hasOwnProperty(k)) Object.defineProperty(exports, k, {
|
|
12
|
+
enumerable: true,
|
|
13
|
+
get: function () { return connectWalletModal[k]; }
|
|
14
|
+
});
|
|
15
|
+
});
|
|
16
|
+
Object.keys(web3React).forEach(function (k) {
|
|
17
|
+
if (k !== 'default' && !exports.hasOwnProperty(k)) Object.defineProperty(exports, k, {
|
|
18
|
+
enumerable: true,
|
|
19
|
+
get: function () { return web3React[k]; }
|
|
20
|
+
});
|
|
21
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,iCAAiC,CAAC;AAChD,cAAc,uBAAuB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
"name": "reef-knot",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"main": "dist/cjs/index.js",
|
|
5
|
+
"module": "dist/esm/index.js",
|
|
6
|
+
"types": "dist/esm/index.d.ts",
|
|
7
|
+
"license": "MIT",
|
|
8
|
+
"publishConfig": {
|
|
9
|
+
"access": "public"
|
|
10
|
+
},
|
|
11
|
+
"scripts": {
|
|
12
|
+
"build": "rollup -c",
|
|
13
|
+
"dev": "rollup -c -w"
|
|
14
|
+
},
|
|
15
|
+
"dependencies": {
|
|
16
|
+
"@reef-knot/connect-wallet-modal": "*",
|
|
17
|
+
"@reef-knot/web3-react": "*"
|
|
18
|
+
}
|
|
19
|
+
}
|
package/rollup.config.js
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import fs from 'fs';
|
|
2
|
+
import ts from 'typescript';
|
|
3
|
+
import tslib from 'tslib';
|
|
4
|
+
import del from 'rollup-plugin-delete';
|
|
5
|
+
import resolve from '@rollup/plugin-node-resolve';
|
|
6
|
+
import typescript from 'rollup-plugin-typescript2';
|
|
7
|
+
import commonjs from '@rollup/plugin-commonjs';
|
|
8
|
+
import { babel } from '@rollup/plugin-babel';
|
|
9
|
+
|
|
10
|
+
const extensions = ['.js', '.jsx', '.ts', '.tsx'];
|
|
11
|
+
|
|
12
|
+
const packageJson = JSON.parse(fs.readFileSync('package.json', 'utf-8'));
|
|
13
|
+
const { dependencies, peerDependencies } = packageJson;
|
|
14
|
+
const commonExternal = ['react/jsx-runtime'];
|
|
15
|
+
const external = [
|
|
16
|
+
...commonExternal,
|
|
17
|
+
...Object.keys({ ...dependencies, ...peerDependencies }),
|
|
18
|
+
];
|
|
19
|
+
|
|
20
|
+
export default {
|
|
21
|
+
input: './src/index',
|
|
22
|
+
output: [
|
|
23
|
+
{
|
|
24
|
+
format: 'cjs',
|
|
25
|
+
dir: 'dist/cjs',
|
|
26
|
+
preserveModules: true,
|
|
27
|
+
exports: 'named',
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
format: 'es',
|
|
31
|
+
dir: 'dist/esm',
|
|
32
|
+
preserveModules: true,
|
|
33
|
+
exports: 'named',
|
|
34
|
+
},
|
|
35
|
+
],
|
|
36
|
+
plugins: [
|
|
37
|
+
del({ targets: 'dist/*', runOnce: true }),
|
|
38
|
+
resolve({ extensions }),
|
|
39
|
+
typescript({
|
|
40
|
+
tslib,
|
|
41
|
+
typescript: ts,
|
|
42
|
+
tsconfig: 'tsconfig.json',
|
|
43
|
+
tsconfigOverride: {
|
|
44
|
+
compilerOptions: {
|
|
45
|
+
paths: { tslib: [require.resolve('tslib/tslib.d.ts')] },
|
|
46
|
+
emitDeclarationOnly: false,
|
|
47
|
+
noEmit: false,
|
|
48
|
+
rootDir: './src',
|
|
49
|
+
},
|
|
50
|
+
exclude: ['node_modules', 'dist', '**/*.stories.*', '**/*.test.*'],
|
|
51
|
+
include: ['**/src/*.ts', '**/src/*.tsx'],
|
|
52
|
+
},
|
|
53
|
+
}),
|
|
54
|
+
commonjs(),
|
|
55
|
+
babel({
|
|
56
|
+
exclude: 'node_modules/**',
|
|
57
|
+
babelHelpers: 'bundled',
|
|
58
|
+
extensions,
|
|
59
|
+
}),
|
|
60
|
+
],
|
|
61
|
+
external,
|
|
62
|
+
};
|
package/src/index.ts
ADDED