@shibanet0/datamitsu-config 0.0.1-alpha-6 → 0.0.1-alpha-7

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/datamitsu.js CHANGED
@@ -863,14 +863,14 @@ var mapOfApps = {
863
863
 
864
864
  // package.json
865
865
  var name = "@shibanet0/datamitsu-config";
866
- var version = "0.0.1-alpha-5";
866
+ var version = "0.0.1-alpha-7";
867
867
  var dependencies = {
868
868
  "@antebudimir/eslint-plugin-vanilla-extract": "1.16.0",
869
869
  "@commitlint/cli": "20.2.0",
870
870
  "@commitlint/config-conventional": "20.2.0",
871
871
  "@commitlint/format": "20.2.0",
872
872
  "@commitlint/types": "20.2.0",
873
- "@datamitsu/datamitsu": "0.0.1-alpha-13",
873
+ "@datamitsu/datamitsu": "0.0.1-alpha-17",
874
874
  "@eslint/config-helpers": "0.5.0",
875
875
  "@eslint/js": "9.39.2",
876
876
  "@prettier/plugin-xml": "3.4.2",
@@ -1685,11 +1685,12 @@ var prettierGlobs = [
1685
1685
  "**/*.ts",
1686
1686
  "**/*.mts",
1687
1687
  "**/*.cts",
1688
+ "**/*.tsx",
1688
1689
  "**/*.json",
1689
1690
  "**/*.yaml",
1690
1691
  "**/*.md"
1691
1692
  ];
1692
- var eslintGlobs = ["**/*.js", "**/*.mjs", "**/*.cjs", "**/*.ts", "**/*.mts", "**/*.cts"];
1693
+ var eslintGlobs = ["**/*.js", "**/*.mjs", "**/*.cjs", "**/*.ts", "**/*.mts", "**/*.cts", "**/*.tsx"];
1693
1694
  var toolsConfig = {
1694
1695
  eslint: {
1695
1696
  name: "Eslint",
@@ -0,0 +1,27 @@
1
+ import type { PackageJson } from "type-fest";
2
+ export interface CleanPackageOptions {
3
+ /**
4
+ * Dry run - don't write changes
5
+ * @default false
6
+ */
7
+ dryRun?: boolean;
8
+ /**
9
+ * Fields to remove from package.json
10
+ * @default ["scripts", "devDependencies", "packageManager"]
11
+ */
12
+ fieldsToRemove?: (keyof PackageJson)[];
13
+ /**
14
+ * Path to package.json file
15
+ * @default "package.json"
16
+ */
17
+ packagePath?: string;
18
+ }
19
+ /**
20
+ * Clean package.json by removing specified fields
21
+ * Useful for prepack/prepublishOnly hooks
22
+ */
23
+ export declare const cleanPackage: (options?: CleanPackageOptions) => void;
24
+ /**
25
+ * CLI entry point
26
+ */
27
+ export declare const main: () => void;
@@ -1,17 +1,9 @@
1
1
  // src/clean-package/index.ts
2
2
  import { readFileSync, writeFileSync } from "fs";
3
3
  import { resolve } from "path";
4
- var DEFAULT_FIELDS_TO_REMOVE = [
5
- "scripts",
6
- "devDependencies",
7
- "packageManager"
8
- ];
4
+ var DEFAULT_FIELDS_TO_REMOVE = ["scripts", "devDependencies", "packageManager"];
9
5
  var cleanPackage = (options = {}) => {
10
- const {
11
- packagePath = "package.json",
12
- fieldsToRemove = DEFAULT_FIELDS_TO_REMOVE,
13
- dryRun = false
14
- } = options;
6
+ const { dryRun = false, fieldsToRemove = DEFAULT_FIELDS_TO_REMOVE, packagePath = "package.json" } = options;
15
7
  const absolutePath = resolve(process.cwd(), packagePath);
16
8
  try {
17
9
  const packageJson = JSON.parse(readFileSync(absolutePath, "utf-8"));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shibanet0/datamitsu-config",
3
- "version": "0.0.1-alpha-6",
3
+ "version": "0.0.1-alpha-7",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "license": "MIT",
@@ -63,7 +63,7 @@
63
63
  "@commitlint/config-conventional": "20.2.0",
64
64
  "@commitlint/format": "20.2.0",
65
65
  "@commitlint/types": "20.2.0",
66
- "@datamitsu/datamitsu": "0.0.1-alpha-16",
66
+ "@datamitsu/datamitsu": "0.0.1-alpha-17",
67
67
  "@eslint/config-helpers": "0.5.0",
68
68
  "@eslint/js": "9.39.2",
69
69
  "@prettier/plugin-xml": "3.4.2",