@acuteinfo/common-screens 1.0.44 → 1.0.46

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": "@acuteinfo/common-screens",
3
- "version": "1.0.44",
3
+ "version": "1.0.46",
4
4
  "license": "MIT",
5
5
  "keywords": [
6
6
  "react",
@@ -103,6 +103,7 @@
103
103
  "rollup-plugin-copy": "^3.5.0",
104
104
  "rollup-plugin-node-polyfills": "^0.2.1",
105
105
  "rollup-plugin-postcss": "^4.0.2",
106
+ "rollup-plugin-rebase": "^4.1.1",
106
107
  "source-map-explorer": "^2.5.2",
107
108
  "tslib": "^2.6.2"
108
109
  },
package/rollup.config.mjs CHANGED
@@ -10,6 +10,7 @@ import resolve from "@rollup/plugin-node-resolve";
10
10
  import commonjs from "@rollup/plugin-commonjs";
11
11
  import terser from "@rollup/plugin-terser";
12
12
  import image from "@rollup/plugin-image";
13
+ import rebase from "rollup-plugin-rebase";
13
14
 
14
15
  export default defineConfig({
15
16
  input: "src/index.ts",
@@ -52,13 +53,17 @@ export default defineConfig({
52
53
  extensions: [".css"],
53
54
  plugins: [simplevars(), nested()],
54
55
  }),
55
- url({
56
- include: ["**/*.svg", "**/*.png", "**/*.jpg", "**/*.gif"],
57
- limit: 0, // All assets will be copied to the output folder
58
- emitFiles: true,
59
- fileName: "[name][extname]",
60
- // destDir: "dist/assets",
56
+ // url({
57
+ // include: ["**/*.svg", "**/*.png", "**/*.jpg", "**/*.gif"],
58
+ // // emitFiles: true,
59
+ // limit: 0,
60
+ // fileName: "[name][extname]",
61
+ // }),
62
+ // image(),
63
+ rebase({
64
+ assetFolder: "assets",
65
+ keepName: true,
61
66
  }),
62
- image(),
63
67
  ],
68
+ makeAbsoluteExternalsRelative: true,
64
69
  });
package/tsconfig.json CHANGED
@@ -19,8 +19,9 @@
19
19
  "noImplicitAny": false,
20
20
  "noFallthroughCasesInSwitch": true,
21
21
  "baseUrl": "src",
22
- "allowUmdGlobalAccess": true
22
+ "allowUmdGlobalAccess": true,
23
+ "outDir": "./dist"
23
24
  },
24
25
  "include": ["src"],
25
- "exclude": ["node_modules"]
26
+ "exclude": ["node_modules", "dist"]
26
27
  }