@najemi-software/typed-scss-modules 13.7.0 → 13.8.0

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/esm/cli.js CHANGED
@@ -1,10 +1,12 @@
1
1
  #!/usr/bin/env node
2
2
  import yargs from "yargs";
3
3
  import { hideBin } from "yargs/helpers";
4
- import { IMPLEMENTATIONS } from "./implementations/index.js";
4
+ import { LOG_LEVELS } from "./core/alerts.js";
5
+ import { IMPLEMENTATIONS } from "./implementations/implementations.js";
5
6
  import { main } from "./main.js";
6
- import { NAME_FORMATS } from "./sass/index.js";
7
- import { EXPORT_TYPES, LOG_LEVELS, QUOTE_TYPES } from "./typescript/index.js";
7
+ import { NAME_FORMATS } from "./sass/file-to-class-names.js";
8
+ import {} from "./sass/importer.js";
9
+ import { EXPORT_TYPES, QUOTE_TYPES } from "./typescript/class-names-to-type-definition.js";
8
10
  /*
9
11
  hideBin is a shorthand for process.argv.slice(2).
10
12
  It has the benefit that it takes into account variations in some environments
@@ -1,6 +1,7 @@
1
1
  import fs from "fs";
2
2
  import { fileToClassNames } from "../sass/file-to-class-names.js";
3
- import { classNamesToTypeDefinitions, getTypeDefinitionPath } from "../typescript/index.js";
3
+ import { classNamesToTypeDefinitions } from "../typescript/class-names-to-type-definition.js";
4
+ import { getTypeDefinitionPath } from "../typescript/get-type-definition-path.js";
4
5
  import { alerts } from "./alerts.js";
5
6
  import { listFilesAndPerformSanityChecks } from "./list-files-and-perform-sanity-checks.js";
6
7
  export const listDifferent = async (pattern, options) => {
@@ -1,5 +1,6 @@
1
+ import type { LogLevel } from "../core/alerts.js";
1
2
  import type { SASSOptions } from "../sass/file-to-class-names.js";
2
- import type { ExportType, LogLevel, QuoteType } from "../typescript/index.js";
3
+ import type { ExportType, QuoteType } from "../typescript/class-names-to-type-definition.js";
3
4
  /**
4
5
  * @public
5
6
  */
@@ -1,7 +1,8 @@
1
1
  import fs from "fs";
2
2
  import path from "path";
3
3
  import { fileToClassNames } from "../sass/file-to-class-names.js";
4
- import { classNamesToTypeDefinitions, getTypeDefinitionPath } from "../typescript/index.js";
4
+ import { classNamesToTypeDefinitions } from "../typescript/class-names-to-type-definition.js";
5
+ import { getTypeDefinitionPath } from "../typescript/get-type-definition-path.js";
5
6
  import { alerts } from "./alerts.js";
6
7
  import { removeSCSSTypeDefinitionFile } from "./remove-file.js";
7
8
  /**
@@ -1,4 +1,4 @@
1
- import { alerts } from "../core/index.js";
1
+ import { alerts } from "../core/alerts.js";
2
2
  const cache = {};
3
3
  export const disposeAllCompilers = async () => {
4
4
  // Cleanup of any cached compilers
package/esm/index.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  export type { CLIOnlyOptions, CLIOptions, ConfigOptions } from "./core/types.js";
2
- export { LOG_LEVELS, type ExportType, type LogLevel, type QuoteType } from "./typescript/index.js";
2
+ export { type ExportType, type QuoteType } from "./typescript/class-names-to-type-definition.js";
3
+ export { LOG_LEVELS, type LogLevel } from "./core/alerts.js";
3
4
  export type { InternalSassOptions, SASSOptions } from "./sass/file-to-class-names.js";
4
5
  export type { Aliases, Importer, SASSImporterOptions, SyncMode } from "./sass/importer.js";
5
6
  export { IMPLEMENTATIONS, type Implementations } from "./implementations/implementations.js";
package/esm/index.js CHANGED
@@ -1,3 +1,4 @@
1
- export { LOG_LEVELS } from "./typescript/index.js";
1
+ export {} from "./typescript/class-names-to-type-definition.js";
2
+ export { LOG_LEVELS } from "./core/alerts.js";
2
3
  export { IMPLEMENTATIONS } from "./implementations/implementations.js";
3
4
  export { main as default } from "./main.js";
package/esm/load.js CHANGED
@@ -1,11 +1,11 @@
1
1
  import path from "path";
2
2
  import JoyCon from "joycon";
3
3
  import { bundleRequire } from "rolldown-require";
4
- import { alerts } from "./core/alerts.js";
4
+ import { alerts, logLevelDefault } from "./core/alerts.js";
5
5
  import {} from "./core/types.js";
6
6
  import { getDefaultImplementation } from "./implementations/implementations.js";
7
7
  import { nameFormatDefault } from "./sass/file-to-class-names.js";
8
- import { bannerTypeDefault, exportTypeDefault, exportTypeInterfaceDefault, exportTypeNameDefault, logLevelDefault, quoteTypeDefault, } from "./typescript/index.js";
8
+ import { bannerTypeDefault, exportTypeDefault, exportTypeInterfaceDefault, exportTypeNameDefault, quoteTypeDefault, } from "./typescript/class-names-to-type-definition.js";
9
9
  const VALID_CONFIG_FILES = [
10
10
  "typed-scss-modules.config.ts",
11
11
  "typed-scss-modules.config.mjs",
package/esm/main.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { type CLIOptions } from "./core/index.js";
1
+ import { type CLIOptions } from "./core/types.js";
2
2
  /**
3
3
  * @public
4
4
  */
package/esm/main.js CHANGED
@@ -1,7 +1,11 @@
1
1
  import fs from "fs";
2
2
  import path from "path";
3
3
  import slash from "slash";
4
- import { generate, listDifferent, setAlertsLogLevel, watch } from "./core/index.js";
4
+ import { setAlertsLogLevel } from "./core/alerts.js";
5
+ import { generate } from "./core/generate.js";
6
+ import { listDifferent } from "./core/list-different.js";
7
+ import {} from "./core/types.js";
8
+ import { watch } from "./core/watch.js";
5
9
  import { disposeAllCompilers } from "./implementations/compilers.js";
6
10
  import { loadConfig, mergeOptions } from "./load.js";
7
11
  /**
@@ -1,7 +1,6 @@
1
1
  import { type Options } from "sass";
2
- import { type Implementations } from "../implementations/index.js";
3
- import { type Aliases, type SASSImporter, type SASSImporterOptions, type SyncMode } from "./importer.js";
4
- export type { Aliases };
2
+ import { type Implementations } from "../implementations/implementations.js";
3
+ import { type SASSImporter, type SASSImporterOptions, type SyncMode } from "./importer.js";
5
4
  export type ClassName = string;
6
5
  declare const transformersMap: {
7
6
  readonly camel: (className: ClassName) => string;
@@ -29,3 +28,4 @@ export interface SASSOptions extends SASSImporterOptions, InternalSassOptions {
29
28
  }
30
29
  export declare const nameFormatDefault: NameFormatWithTransformer;
31
30
  export declare const fileToClassNames: (file: string, { style, loadPaths, silenceDeprecations, nameFormat: rawNameFormat, implementation, aliases, aliasPrefixes, importers, async, }?: SASSOptions) => Promise<string[]>;
31
+ export {};
@@ -1,7 +1,8 @@
1
1
  import { camelCase, camelCaseTransformMerge, paramCase, snakeCase } from "change-case";
2
2
  import {} from "sass";
3
- import { getAsyncCompiler, getImplementation, getSyncCompiler, } from "../implementations/index.js";
4
- import { customImporters, } from "./importer.js";
3
+ import { getAsyncCompiler, getSyncCompiler } from "../implementations/compilers.js";
4
+ import { getImplementation } from "../implementations/implementations.js";
5
+ import { customImporters } from "./importer.js";
5
6
  import { sourceToClassNames } from "./source-to-class-names.js";
6
7
  const transformersMap = {
7
8
  camel: (className) => camelCase(className, { transform: camelCaseTransformMerge }),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@najemi-software/typed-scss-modules",
3
- "version": "13.7.0",
3
+ "version": "13.8.0",
4
4
  "private": false,
5
5
  "description": "TypeScript type definition generator for SCSS CSS Modules",
6
6
  "keywords": [
@@ -1,6 +0,0 @@
1
- export { alerts, setAlertsLogLevel } from "./alerts.js";
2
- export { generate } from "./generate.js";
3
- export { listDifferent } from "./list-different.js";
4
- export type { CLIOptions, ConfigOptions } from "./types.js";
5
- export { watch } from "./watch.js";
6
- export { writeFile } from "./write-file.js";
package/esm/core/index.js DELETED
@@ -1,5 +0,0 @@
1
- export { alerts, setAlertsLogLevel } from "./alerts.js";
2
- export { generate } from "./generate.js";
3
- export { listDifferent } from "./list-different.js";
4
- export { watch } from "./watch.js";
5
- export { writeFile } from "./write-file.js";
@@ -1,2 +0,0 @@
1
- export * from "./compilers.js";
2
- export * from "./implementations.js";
@@ -1,2 +0,0 @@
1
- export * from "./compilers.js";
2
- export * from "./implementations.js";
@@ -1 +0,0 @@
1
- export { NAME_FORMATS, fileToClassNames, nameFormatDefault, type Aliases, type SASSOptions, } from "./file-to-class-names.js";
package/esm/sass/index.js DELETED
@@ -1 +0,0 @@
1
- export { NAME_FORMATS, fileToClassNames, nameFormatDefault, } from "./file-to-class-names.js";
@@ -1,3 +0,0 @@
1
- export { LOG_LEVELS, logLevelDefault, type LogLevel } from "../core/alerts.js";
2
- export { EXPORT_TYPES, QUOTE_TYPES, bannerTypeDefault, classNamesToTypeDefinitions, exportTypeDefault, exportTypeInterfaceDefault, exportTypeNameDefault, quoteTypeDefault, type ExportType, type QuoteType, } from "./class-names-to-type-definition.js";
3
- export { getTypeDefinitionPath } from "./get-type-definition-path.js";
@@ -1,3 +0,0 @@
1
- export { LOG_LEVELS, logLevelDefault } from "../core/alerts.js";
2
- export { EXPORT_TYPES, QUOTE_TYPES, bannerTypeDefault, classNamesToTypeDefinitions, exportTypeDefault, exportTypeInterfaceDefault, exportTypeNameDefault, quoteTypeDefault, } from "./class-names-to-type-definition.js";
3
- export { getTypeDefinitionPath } from "./get-type-definition-path.js";