@amedia/user 0.13.14 → 0.13.16
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/README.md +1 -5
- package/build.js +26 -0
- package/dist/index.d.ts +696 -17
- package/dist/index.esm.js +15 -0
- package/dist/index.esm.js.map +7 -0
- package/dist/index.js +15 -2
- package/dist/index.js.map +7 -0
- package/eik.json +4 -3
- package/package.json +30 -39
- package/src/actions/userData.ts +7 -9
- package/src/clients/jupiter.spec.ts +1 -3
- package/src/clients/pluto.spec.ts +2 -5
- package/tsconfig.eslint.json +2 -4
- package/tsconfig.json +2 -1
- package/dist/cache/engines/indexeddb.d.ts +0 -7
- package/dist/index.js.LICENSE.txt +0 -14
- package/dist/lib/PaywallUnlocker.d.ts +0 -16
- package/dist/lib/PaywallUnlocker.spec.d.ts +0 -4
- package/dist/lib/User.d.ts +0 -21
- package/dist/utils/logValidationError.d.ts +0 -1
- package/rollup.config.js +0 -14
- package/test.html +0 -12
- package/webpack.config.js +0 -28
package/README.md
CHANGED
|
@@ -167,9 +167,5 @@ Before publishing to Eik, you need to be logged in by running `eik/eik-login` in
|
|
|
167
167
|
To publish a new version do the following:
|
|
168
168
|
|
|
169
169
|
- Update version number in `eik.json` to the same version as in `package.json`
|
|
170
|
-
- Run `npm run
|
|
171
|
-
- Run `npx eik package`
|
|
170
|
+
- Run `npm run eik:package` (no publishing will be done unless packages passes lint, typings, tests and builds successfully)
|
|
172
171
|
- Run `npx eik package-alias user <version from eik.json> <Alias version>`
|
|
173
|
-
|
|
174
|
-
`build:rollup` will package the internal modules into one big Javascript module that is ES compatible. `npx eik package`
|
|
175
|
-
will upload this module to Eik and `npx eik package-alias` will update the alias to point to the new version.
|
package/build.js
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
const { build } = require('esbuild');
|
|
2
|
+
const { Generator } = require('npm-dts');
|
|
3
|
+
|
|
4
|
+
const shared = {
|
|
5
|
+
entryPoints: ['src/index.ts'],
|
|
6
|
+
bundle: true,
|
|
7
|
+
minify: true,
|
|
8
|
+
sourcemap: true,
|
|
9
|
+
keepNames: true,
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
build({
|
|
13
|
+
...shared,
|
|
14
|
+
outfile: 'dist/index.js',
|
|
15
|
+
});
|
|
16
|
+
|
|
17
|
+
build({
|
|
18
|
+
...shared,
|
|
19
|
+
outfile: 'dist/index.esm.js',
|
|
20
|
+
format: 'esm',
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
new Generator({
|
|
24
|
+
entry: 'src/index.ts',
|
|
25
|
+
output: 'dist/index.d.ts',
|
|
26
|
+
}).generate();
|