@najemi-software/typed-scss-modules 13.7.0-alpha.55.1 → 13.8.0-alpha.56.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/esm/cli.js +5 -3
- package/esm/core/list-different.js +2 -1
- package/esm/core/types.d.ts +2 -1
- package/esm/core/write-file.js +2 -1
- package/esm/implementations/compilers.js +1 -1
- package/esm/index.d.ts +2 -1
- package/esm/index.js +2 -1
- package/esm/load.js +2 -2
- package/esm/main.d.ts +1 -1
- package/esm/main.js +5 -1
- package/esm/sass/file-to-class-names.d.ts +3 -3
- package/esm/sass/file-to-class-names.js +3 -2
- package/package.json +1 -1
- package/esm/core/index.d.ts +0 -6
- package/esm/core/index.js +0 -5
- package/esm/implementations/index.d.ts +0 -2
- package/esm/implementations/index.js +0 -2
- package/esm/sass/index.d.ts +0 -1
- package/esm/sass/index.js +0 -1
- package/esm/typescript/index.d.ts +0 -3
- package/esm/typescript/index.js +0 -3
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 {
|
|
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/
|
|
7
|
-
import {
|
|
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
|
|
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) => {
|
package/esm/core/types.d.ts
CHANGED
|
@@ -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,
|
|
3
|
+
import type { ExportType, QuoteType } from "../typescript/class-names-to-type-definition.js";
|
|
3
4
|
/**
|
|
4
5
|
* @public
|
|
5
6
|
*/
|
package/esm/core/write-file.js
CHANGED
|
@@ -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
|
|
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
|
/**
|
package/esm/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export type { CLIOnlyOptions, CLIOptions, ConfigOptions } from "./core/types.js";
|
|
2
|
-
export {
|
|
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 {
|
|
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,
|
|
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
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 {
|
|
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/
|
|
3
|
-
import { type
|
|
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,
|
|
4
|
-
import {
|
|
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
package/esm/core/index.d.ts
DELETED
|
@@ -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
package/esm/sass/index.d.ts
DELETED
|
@@ -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";
|
package/esm/typescript/index.js
DELETED
|
@@ -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";
|