@culur/config-tsdown 1.1.0 → 1.1.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/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # @culur/config-tsdown
2
2
 
3
+ ## 1.1.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 📦 Update dependencies ([#514](https://github.com/culur/culur/pull/514) [`ceeed4f`](https://github.com/culur/culur/commit/ceeed4f61b124d184ce5ad0b923b0c9d6d838db9)) ([@phamhongphuc](https://github.com/phamhongphuc)):
8
+ - `devDependencies`:
9
+ - `tsdown@^0.22.1`
10
+ - `unrun@^0.3.0`
11
+
3
12
  ## 1.1.0
4
13
 
5
14
  ### Minor Changes
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2022 Culur
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/dist/index.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_types = require("./types-BrvIhA3f.cjs");
2
+ const require_types = require("./types-CFBAfxIx.cjs");
3
3
  //#region src/index.ts
4
4
  const sharedConfig = require_types.defineConfigPure({
5
5
  sourcemap: true,
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs","names":["defineConfigPure"],"sources":["../src/index.ts"],"sourcesContent":["import { defineConfigPure } from './types';\n\nexport { defineConfig } from './types';\n\nconst sharedConfig = defineConfigPure({\n sourcemap: true,\n clean: true,\n dts: true,\n entry: [\n 'src/**/*.ts', //\n '!src/**/*.test.ts',\n '!src/**/*.spec.ts',\n ] as const,\n treeshake: true,\n});\n\nexport const esm = defineConfigPure({\n ...sharedConfig,\n format: 'esm',\n});\n\nexport const cjs = defineConfigPure({\n ...sharedConfig,\n format: 'cjs',\n});\n\nexport const esm_cjs = defineConfigPure({\n ...sharedConfig,\n format: ['esm', 'cjs'] as const,\n});\n"],"mappings":";;;AAIA,MAAM,eAAeA,cAAAA,iBAAiB;CACpC,WAAW;CACX,OAAO;CACP,KAAK;CACL,OAAO;EACL;EACA;EACA;EACD;CACD,WAAW;CACZ,CAAC;AAEF,MAAa,MAAMA,cAAAA,iBAAiB;CAClC,GAAG;CACH,QAAQ;CACT,CAAC;AAEF,MAAa,MAAMA,cAAAA,iBAAiB;CAClC,GAAG;CACH,QAAQ;CACT,CAAC;AAEF,MAAa,UAAUA,cAAAA,iBAAiB;CACtC,GAAG;CACH,QAAQ,CAAC,OAAO,MAAM;CACvB,CAAC"}
1
+ {"version":3,"file":"index.cjs","names":["defineConfigPure"],"sources":["../src/index.ts"],"sourcesContent":["import { defineConfigPure } from './types';\n\nexport { defineConfig } from './types';\n\nconst sharedConfig = defineConfigPure({\n sourcemap: true,\n clean: true,\n dts: true,\n entry: [\n 'src/**/*.ts', //\n '!src/**/*.test.ts',\n '!src/**/*.spec.ts',\n ] as const,\n treeshake: true,\n});\n\nexport const esm = defineConfigPure({\n ...sharedConfig,\n format: 'esm',\n});\n\nexport const cjs = defineConfigPure({\n ...sharedConfig,\n format: 'cjs',\n});\n\nexport const esm_cjs = defineConfigPure({\n ...sharedConfig,\n format: ['esm', 'cjs'] as const,\n});\n"],"mappings":";;;AAIA,MAAM,eAAeA,cAAAA,iBAAiB;CACpC,WAAW;CACX,OAAO;CACP,KAAK;CACL,OAAO;EACL;EACA;EACA;CACF;CACA,WAAW;AACb,CAAC;AAED,MAAa,MAAMA,cAAAA,iBAAiB;CAClC,GAAG;CACH,QAAQ;AACV,CAAC;AAED,MAAa,MAAMA,cAAAA,iBAAiB;CAClC,GAAG;CACH,QAAQ;AACV,CAAC;AAED,MAAa,UAAUA,cAAAA,iBAAiB;CACtC,GAAG;CACH,QAAQ,CAAC,OAAO,KAAK;AACvB,CAAC"}
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { n as defineConfigPure, t as defineConfig } from "./types-78D1wC2M.mjs";
1
+ import { n as defineConfigPure, t as defineConfig } from "./types-D3eqvzXu.mjs";
2
2
  //#region src/index.ts
3
3
  const sharedConfig = defineConfigPure({
4
4
  sourcemap: true,
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","names":[],"sources":["../src/index.ts"],"sourcesContent":["import { defineConfigPure } from './types';\n\nexport { defineConfig } from './types';\n\nconst sharedConfig = defineConfigPure({\n sourcemap: true,\n clean: true,\n dts: true,\n entry: [\n 'src/**/*.ts', //\n '!src/**/*.test.ts',\n '!src/**/*.spec.ts',\n ] as const,\n treeshake: true,\n});\n\nexport const esm = defineConfigPure({\n ...sharedConfig,\n format: 'esm',\n});\n\nexport const cjs = defineConfigPure({\n ...sharedConfig,\n format: 'cjs',\n});\n\nexport const esm_cjs = defineConfigPure({\n ...sharedConfig,\n format: ['esm', 'cjs'] as const,\n});\n"],"mappings":";;AAIA,MAAM,eAAe,iBAAiB;CACpC,WAAW;CACX,OAAO;CACP,KAAK;CACL,OAAO;EACL;EACA;EACA;EACD;CACD,WAAW;CACZ,CAAC;AAEF,MAAa,MAAM,iBAAiB;CAClC,GAAG;CACH,QAAQ;CACT,CAAC;AAEF,MAAa,MAAM,iBAAiB;CAClC,GAAG;CACH,QAAQ;CACT,CAAC;AAEF,MAAa,UAAU,iBAAiB;CACtC,GAAG;CACH,QAAQ,CAAC,OAAO,MAAM;CACvB,CAAC"}
1
+ {"version":3,"file":"index.mjs","names":[],"sources":["../src/index.ts"],"sourcesContent":["import { defineConfigPure } from './types';\n\nexport { defineConfig } from './types';\n\nconst sharedConfig = defineConfigPure({\n sourcemap: true,\n clean: true,\n dts: true,\n entry: [\n 'src/**/*.ts', //\n '!src/**/*.test.ts',\n '!src/**/*.spec.ts',\n ] as const,\n treeshake: true,\n});\n\nexport const esm = defineConfigPure({\n ...sharedConfig,\n format: 'esm',\n});\n\nexport const cjs = defineConfigPure({\n ...sharedConfig,\n format: 'cjs',\n});\n\nexport const esm_cjs = defineConfigPure({\n ...sharedConfig,\n format: ['esm', 'cjs'] as const,\n});\n"],"mappings":";;AAIA,MAAM,eAAe,iBAAiB;CACpC,WAAW;CACX,OAAO;CACP,KAAK;CACL,OAAO;EACL;EACA;EACA;CACF;CACA,WAAW;AACb,CAAC;AAED,MAAa,MAAM,iBAAiB;CAClC,GAAG;CACH,QAAQ;AACV,CAAC;AAED,MAAa,MAAM,iBAAiB;CAClC,GAAG;CACH,QAAQ;AACV,CAAC;AAED,MAAa,UAAU,iBAAiB;CACtC,GAAG;CACH,QAAQ,CAAC,OAAO,KAAK;AACvB,CAAC"}
@@ -1,4 +1,4 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_types = require("../types-BrvIhA3f.cjs");
2
+ const require_types = require("../types-CFBAfxIx.cjs");
3
3
  exports.defineConfig = require_types.defineConfig;
4
4
  exports.defineConfigPure = require_types.defineConfigPure;
@@ -1,2 +1,2 @@
1
- import { n as defineConfigPure, t as defineConfig } from "../types-78D1wC2M.mjs";
1
+ import { n as defineConfigPure, t as defineConfig } from "../types-D3eqvzXu.mjs";
2
2
  export { defineConfig, defineConfigPure };
@@ -18,4 +18,4 @@ Object.defineProperty(exports, "defineConfigPure", {
18
18
  }
19
19
  });
20
20
 
21
- //# sourceMappingURL=types-BrvIhA3f.cjs.map
21
+ //# sourceMappingURL=types-CFBAfxIx.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"types-78D1wC2M.mjs","names":[],"sources":["../../types/src/define-object-factory.ts","../src/types/index.ts"],"sourcesContent":["export const defineObjectFactory =\n <TBaseObject, TAutoComplete extends boolean = false>() =>\n <TActualObject extends TBaseObject>(\n object: TAutoComplete extends true\n ? TActualObject | TBaseObject\n : TActualObject,\n ) =>\n object;\n","import type { UserConfig } from 'tsdown';\nimport { defineObjectFactory } from '../../../types/src/define-object-factory'; // external import\n\nexport const defineConfigPure = defineObjectFactory<UserConfig>();\n\nexport const defineConfig = defineObjectFactory<UserConfig, true>();\n"],"mappings":";AAAA,MAAa,6BAGT,WAIA;;;ACJJ,MAAa,mBAAmB,qBAAiC;AAEjE,MAAa,eAAe,qBAAuC"}
1
+ {"version":3,"file":"types-CFBAfxIx.cjs","names":[],"sources":["../../types/src/define-object-factory.ts","../src/types/index.ts"],"sourcesContent":["export const defineObjectFactory =\n <TBaseObject, TAutoComplete extends boolean = false>() =>\n <TActualObject extends TBaseObject>(\n object: TAutoComplete extends true\n ? TActualObject | TBaseObject\n : TActualObject,\n ) =>\n object;\n","import type { UserConfig } from 'tsdown';\nimport { defineObjectFactory } from '../../../types/src/define-object-factory'; // external import\n\nexport const defineConfigPure = defineObjectFactory<UserConfig>();\n\nexport const defineConfig = defineObjectFactory<UserConfig, true>();\n"],"mappings":";AAAA,MAAa,6BAGT,WAIA;;;ACJJ,MAAa,mBAAmB,oBAAgC;AAEhE,MAAa,eAAe,oBAAsC"}
@@ -7,4 +7,4 @@ const defineConfig = defineObjectFactory();
7
7
  //#endregion
8
8
  export { defineConfigPure as n, defineConfig as t };
9
9
 
10
- //# sourceMappingURL=types-78D1wC2M.mjs.map
10
+ //# sourceMappingURL=types-D3eqvzXu.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"types-BrvIhA3f.cjs","names":[],"sources":["../../types/src/define-object-factory.ts","../src/types/index.ts"],"sourcesContent":["export const defineObjectFactory =\n <TBaseObject, TAutoComplete extends boolean = false>() =>\n <TActualObject extends TBaseObject>(\n object: TAutoComplete extends true\n ? TActualObject | TBaseObject\n : TActualObject,\n ) =>\n object;\n","import type { UserConfig } from 'tsdown';\nimport { defineObjectFactory } from '../../../types/src/define-object-factory'; // external import\n\nexport const defineConfigPure = defineObjectFactory<UserConfig>();\n\nexport const defineConfig = defineObjectFactory<UserConfig, true>();\n"],"mappings":";AAAA,MAAa,6BAGT,WAIA;;;ACJJ,MAAa,mBAAmB,qBAAiC;AAEjE,MAAa,eAAe,qBAAuC"}
1
+ {"version":3,"file":"types-D3eqvzXu.mjs","names":[],"sources":["../../types/src/define-object-factory.ts","../src/types/index.ts"],"sourcesContent":["export const defineObjectFactory =\n <TBaseObject, TAutoComplete extends boolean = false>() =>\n <TActualObject extends TBaseObject>(\n object: TAutoComplete extends true\n ? TActualObject | TBaseObject\n : TActualObject,\n ) =>\n object;\n","import type { UserConfig } from 'tsdown';\nimport { defineObjectFactory } from '../../../types/src/define-object-factory'; // external import\n\nexport const defineConfigPure = defineObjectFactory<UserConfig>();\n\nexport const defineConfig = defineObjectFactory<UserConfig, true>();\n"],"mappings":";AAAA,MAAa,6BAGT,WAIA;;;ACJJ,MAAa,mBAAmB,oBAAgC;AAEhE,MAAa,eAAe,oBAAsC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@culur/config-tsdown",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "Culur's tsdown configuration",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -43,11 +43,6 @@
43
43
  "dist",
44
44
  "src"
45
45
  ],
46
- "scripts": {
47
- "clean": "rimraf dist coverage",
48
- "build": "tsdown --config-loader unrun",
49
- "test": "tsc --noEmit && vitest run"
50
- },
51
46
  "volta": {
52
47
  "extends": "../../package.json"
53
48
  },
@@ -55,10 +50,16 @@
55
50
  "node": ">=20"
56
51
  },
57
52
  "devDependencies": {
58
- "@culur/config-typescript": "workspace:*",
59
- "tsdown": "^0.21.6"
53
+ "tsdown": "^0.22.1",
54
+ "unrun": "^0.3.0",
55
+ "@culur/config-typescript": "2.0.0"
60
56
  },
61
57
  "peerDependencies": {
62
- "tsdown": "^0.21.6"
58
+ "tsdown": "^0.22.1"
59
+ },
60
+ "scripts": {
61
+ "clean": "rimraf dist coverage",
62
+ "build": "tsdown --config-loader unrun",
63
+ "test": "tsc --noEmit && vitest run"
63
64
  }
64
- }
65
+ }