@bccampus/utils 0.2.1 → 0.2.2
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/dist/index.cjs +4 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +4 -0
- package/package.json +6 -1
- package/src/index.ts +1 -0
- package/vite.config.ts +2 -1
package/dist/index.cjs
ADDED
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const USE_SUBPATH_EXPORTS = true;
|
package/dist/index.js
ADDED
package/package.json
CHANGED
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bccampus/utils",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2",
|
|
4
4
|
"description": "BCcampus' utility box",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "UNLICENSED",
|
|
7
7
|
"exports": {
|
|
8
|
+
".": {
|
|
9
|
+
"types": "./dist/index.d.ts",
|
|
10
|
+
"import": "./dist/index.js",
|
|
11
|
+
"require": "./dist/index.cjs"
|
|
12
|
+
},
|
|
8
13
|
"./array": {
|
|
9
14
|
"types": "./dist/array/index.d.ts",
|
|
10
15
|
"import": "./dist/array/index.js",
|
package/src/index.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const USE_SUBPATH_EXPORTS = true;
|
package/vite.config.ts
CHANGED
|
@@ -47,7 +47,7 @@ const createEntries = () => {
|
|
|
47
47
|
|
|
48
48
|
const _packageConfig = {
|
|
49
49
|
...packageConfig,
|
|
50
|
-
exports: Object.fromEntries(exports),
|
|
50
|
+
exports: Object.fromEntries([...exports].sort((a, b) => a[0].localeCompare(b[0]))),
|
|
51
51
|
};
|
|
52
52
|
|
|
53
53
|
writeFileSync("./package.json", JSON.stringify(_packageConfig, null, 2), {
|
|
@@ -70,6 +70,7 @@ export default defineConfig({
|
|
|
70
70
|
lib: {
|
|
71
71
|
entry: createEntries(),
|
|
72
72
|
name: "utils",
|
|
73
|
+
formats: ["es", "cjs"],
|
|
73
74
|
},
|
|
74
75
|
},
|
|
75
76
|
});
|