piral-oidc 1.0.0-pre.2036 → 1.0.1-beta.5640

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "piral-oidc",
3
- "version": "1.0.0-pre.2036",
3
+ "version": "1.0.1-beta.5640",
4
4
  "description": "Plugin to integrate authentication using OpenID connect in Piral.",
5
5
  "keywords": [
6
6
  "piral",
@@ -19,12 +19,32 @@
19
19
  "author": "smapiot",
20
20
  "homepage": "https://piral.io",
21
21
  "license": "MIT",
22
+ "module": "esm/index.js",
22
23
  "main": "lib/index.js",
23
24
  "typings": "lib/index.d.ts",
25
+ "exports": {
26
+ ".": {
27
+ "import": "./esm/index.js",
28
+ "require": "./lib/index.js"
29
+ },
30
+ "./esm/*": {
31
+ "import": "./esm/*"
32
+ },
33
+ "./lib/*": {
34
+ "require": "./lib/*"
35
+ },
36
+ "./_/*": {
37
+ "import": "./esm/*.js",
38
+ "require": "./lib/*.js"
39
+ },
40
+ "./package.json": "./package.json"
41
+ },
24
42
  "sideEffects": false,
25
43
  "files": [
44
+ "esm",
26
45
  "lib",
27
- "src"
46
+ "src",
47
+ "piral-oidc.min.js"
28
48
  ],
29
49
  "repository": {
30
50
  "type": "git",
@@ -34,7 +54,11 @@
34
54
  "url": "https://github.com/smapiot/piral/issues"
35
55
  },
36
56
  "scripts": {
37
- "build": "tsc",
57
+ "cleanup": "rimraf esm lib piral-oidc.min.js",
58
+ "build": "yarn build:bundle && yarn build:commonjs && yarn build:esnext",
59
+ "build:bundle": "esbuild src/index.ts --outfile=piral-oidc.min.js --bundle --external:piral-core --minify --global-name=piralOidc",
60
+ "build:commonjs": "tsc --project tsconfig.json --outDir lib --module commonjs",
61
+ "build:esnext": "tsc --project tsconfig.json --outDir esm --module esnext",
38
62
  "typedoc": "typedoc --json ../../../docs/types/piral-oidc.json src --exclude \"src/**/*.test.*\"",
39
63
  "test": "echo \"Error: run tests from root\" && exit 1"
40
64
  },
@@ -42,10 +66,7 @@
42
66
  "oidc-client": "^1.10.1"
43
67
  },
44
68
  "devDependencies": {
45
- "piral-core": "^1.0.0-pre.2036"
46
- },
47
- "peerDependencies": {
48
- "piral-core": "1.x"
69
+ "piral-core": "1.0.1-beta.5640"
49
70
  },
50
- "gitHead": "117e562b48802cdd4ddc5e9e6d42e91fa170daed"
71
+ "gitHead": "fa0a72b28fd0a20afec7ef491ec19e93c090fc72"
51
72
  }