@jesscss/plugin-node-modules 2.0.0-alpha.5 → 2.0.0-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/lib/index.cjs ADDED
@@ -0,0 +1,134 @@
1
+ Object.defineProperties(exports, {
2
+ __esModule: { value: true },
3
+ [Symbol.toStringTag]: { value: "Module" }
4
+ });
5
+ //#region \0rolldown/runtime.js
6
+ var __create = Object.create;
7
+ var __defProp = Object.defineProperty;
8
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
9
+ var __getOwnPropNames = Object.getOwnPropertyNames;
10
+ var __getProtoOf = Object.getPrototypeOf;
11
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
14
+ key = keys[i];
15
+ if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
16
+ get: ((k) => from[k]).bind(null, key),
17
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
18
+ });
19
+ }
20
+ return to;
21
+ };
22
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
23
+ value: mod,
24
+ enumerable: true
25
+ }) : target, mod));
26
+ //#endregion
27
+ let _jesscss_core = require("@jesscss/core");
28
+ let node_module = require("node:module");
29
+ let node_url = require("node:url");
30
+ let node_path = require("node:path");
31
+ node_path = __toESM(node_path);
32
+ //#region src/index.ts
33
+ /**
34
+ * Plugin that provides npm/node_modules resolution and loading capabilities.
35
+ *
36
+ * This plugin implements the `import()` method to resolve and load npm packages
37
+ * using Node's module resolution algorithm (require.resolve).
38
+ *
39
+ * It can be used by other plugins (like jess-plugin-less-compat) to load
40
+ * npm packages when processing directives like `@plugin "package-name"`.
41
+ */
42
+ var NodeModulesPlugin = class extends _jesscss_core.AbstractPlugin {
43
+ name = "node-modules";
44
+ _require;
45
+ constructor(opts = {}) {
46
+ super();
47
+ this.opts = opts;
48
+ try {
49
+ let currentDir;
50
+ if (typeof __filename !== "undefined") currentDir = node_path.dirname(__filename);
51
+ else try {
52
+ const url = require("url").pathToFileURL(__filename).href;
53
+ currentDir = node_path.dirname((0, node_url.fileURLToPath)(url));
54
+ } catch {
55
+ currentDir = process.cwd();
56
+ }
57
+ this._require = (0, node_module.createRequire)(currentDir + "/");
58
+ } catch {
59
+ this._require = typeof require !== "undefined" ? require : (0, node_module.createRequire)(process.cwd() + "/");
60
+ }
61
+ }
62
+ /**
63
+ * Resolve an npm package name to its absolute path.
64
+ * Uses Node's module resolution algorithm (same as require.resolve).
65
+ *
66
+ * @param packageName - The npm package name (e.g., "less-plugin-clean-css")
67
+ * @returns The absolute path to the package, or null if not found
68
+ */
69
+ resolvePackage(packageName) {
70
+ if (this.opts.enabled === false) return null;
71
+ try {
72
+ return this._require.resolve(packageName);
73
+ } catch (e) {
74
+ if (e.code === "MODULE_NOT_FOUND") return null;
75
+ throw e;
76
+ }
77
+ }
78
+ /**
79
+ * Load an npm package module.
80
+ *
81
+ * @param packageName - The npm package name (e.g., "less-plugin-clean-css")
82
+ * @returns The loaded module, or null if not found
83
+ */
84
+ async loadPackage(packageName) {
85
+ const resolvedPath = this.resolvePackage(packageName);
86
+ if (!resolvedPath) return null;
87
+ try {
88
+ return this._require(resolvedPath) || null;
89
+ } catch {
90
+ return null;
91
+ }
92
+ }
93
+ /**
94
+ * Try to resolve a package name with multiple possible names.
95
+ * Useful for plugins that want to try different variations
96
+ * (e.g., "clean-css" and "less-plugin-clean-css").
97
+ *
98
+ * @param packageNames - Array of package names to try in order
99
+ * @returns The first successfully resolved package, or null if none found
100
+ */
101
+ async tryResolvePackages(packageNames) {
102
+ for (const name of packageNames) {
103
+ const module = await this.loadPackage(name);
104
+ if (module !== null) return {
105
+ name,
106
+ module
107
+ };
108
+ }
109
+ return null;
110
+ }
111
+ /**
112
+ * Import method for loading JavaScript modules from npm.
113
+ * This is called by the context when importing modules.
114
+ *
115
+ * @param absoluteFilePath - The absolute path to the module
116
+ * @returns The loaded module, or throws if this plugin can't handle it
117
+ */
118
+ async import(absoluteFilePath) {
119
+ if (this.opts.enabled === false) throw new Error(`Plugin "${this.name}" cannot import "${absoluteFilePath}" (disabled)`);
120
+ if (absoluteFilePath.includes("node_modules")) try {
121
+ return this._require(absoluteFilePath);
122
+ } catch (e) {
123
+ const message = e instanceof Error ? e.message : String(e);
124
+ throw new Error(`Failed to import "${absoluteFilePath}": ${message}`);
125
+ }
126
+ throw new Error(`Plugin "${this.name}" cannot import "${absoluteFilePath}" (not a node_modules path)`);
127
+ }
128
+ };
129
+ const nodeModulesPlugin = ((opts) => {
130
+ return new NodeModulesPlugin(opts);
131
+ });
132
+ //#endregion
133
+ exports.NodeModulesPlugin = NodeModulesPlugin;
134
+ exports.default = nodeModulesPlugin;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,cAAc,EACf,MAAM,eAAe,CAAC;AAKvB,UAAU,wBAAwB;IAChC;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,YAAY,EAAE,wBAAwB,EAAE,CAAC;AAEzC;;;;;;;;GAQG;AACH,qBAAa,iBAAkB,SAAQ,cAAc;IAKhC,IAAI,EAAE,wBAAwB;IAJjD,IAAI,SAAkB;IAEtB,OAAO,CAAC,QAAQ,CAAc;gBAEX,IAAI,GAAE,wBAA6B;IAmCtD;;;;;;OAMG;IACH,cAAc,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI;IAoBlD;;;;;OAKG;IACG,WAAW,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,IAAI,CAAC;IAgB3E;;;;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AAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAoBrE;AAED,QAAA,MAAM,iBAAiB,UAAY,wBAAwB,sBAExC,CAAC;AAEpB,eAAe,iBAAiB,CAAC"}
package/lib/index.js CHANGED
@@ -1,150 +1,109 @@
1
- import { AbstractPlugin } from '@jesscss/core';
2
- import { createRequire } from 'node:module';
3
- import { fileURLToPath } from 'node:url';
4
- import * as path from 'node:path';
1
+ import { createRequire } from "node:module";
2
+ import { AbstractPlugin } from "@jesscss/core";
3
+ import { fileURLToPath } from "node:url";
4
+ import * as path from "node:path";
5
+ //#region \0rolldown/runtime.js
6
+ var __require = /* @__PURE__ */ createRequire(import.meta.url);
7
+ //#endregion
8
+ //#region src/index.ts
5
9
  /**
6
- * Plugin that provides npm/node_modules resolution and loading capabilities.
7
- *
8
- * This plugin implements the `import()` method to resolve and load npm packages
9
- * using Node's module resolution algorithm (require.resolve).
10
- *
11
- * It can be used by other plugins (like jess-plugin-less-compat) to load
12
- * npm packages when processing directives like `@plugin "package-name"`.
13
- */
14
- export class NodeModulesPlugin extends AbstractPlugin {
15
- opts;
16
- name = 'node-modules';
17
- _require;
18
- constructor(opts = {}) {
19
- super();
20
- this.opts = opts;
21
- // Create a require function that can resolve modules
22
- // Use createRequire to get a require function in ES module contexts
23
- try {
24
- // Try to use the current file's directory as the base for resolution
25
- let currentDir;
26
- if (typeof __filename !== 'undefined') {
27
- currentDir = path.dirname(__filename);
28
- }
29
- else {
30
- // In ES module contexts, try to use import.meta.url
31
- // This will only work if the module system supports it
32
- try {
33
- // eslint-disable-next-line @typescript-eslint/no-var-requires
34
- const url = globalThis.import?.meta?.url;
35
- if (url) {
36
- currentDir = path.dirname(fileURLToPath(url));
37
- }
38
- else {
39
- throw new Error('import.meta not available');
40
- }
41
- }
42
- catch {
43
- // Fallback to process.cwd()
44
- currentDir = process.cwd();
45
- }
46
- }
47
- this._require = createRequire(currentDir + '/');
48
- }
49
- catch {
50
- // Fallback to global require if available
51
- this._require = typeof require !== 'undefined' ? require : (() => {
52
- throw new Error('require is not available');
53
- });
54
- }
55
- }
56
- /**
57
- * Resolve an npm package name to its absolute path.
58
- * Uses Node's module resolution algorithm (same as require.resolve).
59
- *
60
- * @param packageName - The npm package name (e.g., "less-plugin-clean-css")
61
- * @returns The absolute path to the package, or null if not found
62
- */
63
- resolvePackage(packageName) {
64
- if (this.opts.enabled === false) {
65
- return null;
66
- }
67
- try {
68
- // Use require.resolve to find the package
69
- // This will search node_modules using Node's resolution algorithm
70
- const resolved = this._require.resolve(packageName);
71
- return resolved;
72
- }
73
- catch (e) {
74
- // MODULE_NOT_FOUND is expected when package doesn't exist
75
- if (e.code === 'MODULE_NOT_FOUND') {
76
- return null;
77
- }
78
- // Re-throw other errors
79
- throw e;
80
- }
81
- }
82
- /**
83
- * Load an npm package module.
84
- *
85
- * @param packageName - The npm package name (e.g., "less-plugin-clean-css")
86
- * @returns The loaded module, or null if not found
87
- */
88
- async loadPackage(packageName) {
89
- const resolvedPath = this.resolvePackage(packageName);
90
- if (!resolvedPath) {
91
- return null;
92
- }
93
- try {
94
- // Load the module using require
95
- const module = this._require(resolvedPath);
96
- return module || null;
97
- }
98
- catch (e) {
99
- // If loading fails, return null
100
- return null;
101
- }
102
- }
103
- /**
104
- * Try to resolve a package name with multiple possible names.
105
- * Useful for plugins that want to try different variations
106
- * (e.g., "clean-css" and "less-plugin-clean-css").
107
- *
108
- * @param packageNames - Array of package names to try in order
109
- * @returns The first successfully resolved package, or null if none found
110
- */
111
- async tryResolvePackages(packageNames) {
112
- for (const name of packageNames) {
113
- const module = await this.loadPackage(name);
114
- if (module !== null) {
115
- return { name, module: module };
116
- }
117
- }
118
- return null;
119
- }
120
- /**
121
- * Import method for loading JavaScript modules from npm.
122
- * This is called by the context when importing modules.
123
- *
124
- * @param absoluteFilePath - The absolute path to the module
125
- * @returns The loaded module, or throws if this plugin can't handle it
126
- */
127
- async import(absoluteFilePath) {
128
- if (this.opts.enabled === false) {
129
- throw new Error(`Plugin "${this.name}" cannot import "${absoluteFilePath}" (disabled)`);
130
- }
131
- // Check if this looks like a node_modules path
132
- // We can't directly resolve from absolute paths, but we can try to require it
133
- if (absoluteFilePath.includes('node_modules')) {
134
- try {
135
- const module = this._require(absoluteFilePath);
136
- return module;
137
- }
138
- catch (e) {
139
- throw new Error(`Failed to import "${absoluteFilePath}": ${e.message}`);
140
- }
141
- }
142
- // For non-node_modules paths, throw to let other plugins handle it
143
- throw new Error(`Plugin "${this.name}" cannot import "${absoluteFilePath}" (not a node_modules path)`);
144
- }
145
- }
10
+ * Plugin that provides npm/node_modules resolution and loading capabilities.
11
+ *
12
+ * This plugin implements the `import()` method to resolve and load npm packages
13
+ * using Node's module resolution algorithm (require.resolve).
14
+ *
15
+ * It can be used by other plugins (like jess-plugin-less-compat) to load
16
+ * npm packages when processing directives like `@plugin "package-name"`.
17
+ */
18
+ var NodeModulesPlugin = class extends AbstractPlugin {
19
+ name = "node-modules";
20
+ _require;
21
+ constructor(opts = {}) {
22
+ super();
23
+ this.opts = opts;
24
+ try {
25
+ let currentDir;
26
+ if (typeof __filename !== "undefined") currentDir = path.dirname(__filename);
27
+ else try {
28
+ const url = import.meta.url;
29
+ currentDir = path.dirname(fileURLToPath(url));
30
+ } catch {
31
+ currentDir = process.cwd();
32
+ }
33
+ this._require = createRequire(currentDir + "/");
34
+ } catch {
35
+ this._require = typeof __require !== "undefined" ? __require : createRequire(process.cwd() + "/");
36
+ }
37
+ }
38
+ /**
39
+ * Resolve an npm package name to its absolute path.
40
+ * Uses Node's module resolution algorithm (same as require.resolve).
41
+ *
42
+ * @param packageName - The npm package name (e.g., "less-plugin-clean-css")
43
+ * @returns The absolute path to the package, or null if not found
44
+ */
45
+ resolvePackage(packageName) {
46
+ if (this.opts.enabled === false) return null;
47
+ try {
48
+ return this._require.resolve(packageName);
49
+ } catch (e) {
50
+ if (e.code === "MODULE_NOT_FOUND") return null;
51
+ throw e;
52
+ }
53
+ }
54
+ /**
55
+ * Load an npm package module.
56
+ *
57
+ * @param packageName - The npm package name (e.g., "less-plugin-clean-css")
58
+ * @returns The loaded module, or null if not found
59
+ */
60
+ async loadPackage(packageName) {
61
+ const resolvedPath = this.resolvePackage(packageName);
62
+ if (!resolvedPath) return null;
63
+ try {
64
+ return this._require(resolvedPath) || null;
65
+ } catch {
66
+ return null;
67
+ }
68
+ }
69
+ /**
70
+ * Try to resolve a package name with multiple possible names.
71
+ * Useful for plugins that want to try different variations
72
+ * (e.g., "clean-css" and "less-plugin-clean-css").
73
+ *
74
+ * @param packageNames - Array of package names to try in order
75
+ * @returns The first successfully resolved package, or null if none found
76
+ */
77
+ async tryResolvePackages(packageNames) {
78
+ for (const name of packageNames) {
79
+ const module = await this.loadPackage(name);
80
+ if (module !== null) return {
81
+ name,
82
+ module
83
+ };
84
+ }
85
+ return null;
86
+ }
87
+ /**
88
+ * Import method for loading JavaScript modules from npm.
89
+ * This is called by the context when importing modules.
90
+ *
91
+ * @param absoluteFilePath - The absolute path to the module
92
+ * @returns The loaded module, or throws if this plugin can't handle it
93
+ */
94
+ async import(absoluteFilePath) {
95
+ if (this.opts.enabled === false) throw new Error(`Plugin "${this.name}" cannot import "${absoluteFilePath}" (disabled)`);
96
+ if (absoluteFilePath.includes("node_modules")) try {
97
+ return this._require(absoluteFilePath);
98
+ } catch (e) {
99
+ const message = e instanceof Error ? e.message : String(e);
100
+ throw new Error(`Failed to import "${absoluteFilePath}": ${message}`);
101
+ }
102
+ throw new Error(`Plugin "${this.name}" cannot import "${absoluteFilePath}" (not a node_modules path)`);
103
+ }
104
+ };
146
105
  const nodeModulesPlugin = ((opts) => {
147
- return new NodeModulesPlugin(opts);
106
+ return new NodeModulesPlugin(opts);
148
107
  });
149
- export default nodeModulesPlugin;
150
- //# sourceMappingURL=index.js.map
108
+ //#endregion
109
+ export { NodeModulesPlugin, nodeModulesPlugin as default };
package/package.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "@jesscss/plugin-node-modules",
3
- "version": "2.0.0-alpha.5",
3
+ "version": "2.0.0-alpha.7",
4
4
  "description": "Jess plugin for resolving and loading npm packages from node_modules",
5
- "main": "lib/index.js",
5
+ "main": "lib/index.cjs",
6
6
  "types": "lib/index.d.ts",
7
7
  "exports": {
8
8
  ".": {
9
- "import": "./lib/index.js",
10
9
  "types": "./lib/index.d.ts",
11
- "source": "./src/index.ts"
10
+ "import": "./lib/index.js",
11
+ "require": "./lib/index.cjs"
12
12
  },
13
13
  "./package.json": "./package.json"
14
14
  },
@@ -16,7 +16,7 @@
16
16
  "lib"
17
17
  ],
18
18
  "dependencies": {
19
- "@jesscss/core": "2.0.0-alpha.5"
19
+ "@jesscss/core": "2.0.0-alpha.7"
20
20
  },
21
21
  "devDependencies": {
22
22
  "@types/node": "^20.0.0",
@@ -27,10 +27,12 @@
27
27
  "publishConfig": {
28
28
  "access": "public"
29
29
  },
30
+ "type": "module",
31
+ "module": "lib/index.js",
30
32
  "scripts": {
31
33
  "build": "pnpm compile",
32
- "compile": "tsc -b tsconfig.build.json",
33
- "dev": "tsc -b tsconfig.json -w",
34
+ "compile": "tsdown --tsconfig tsconfig.build.json --no-dts && tsc -p tsconfig.build.json --emitDeclarationOnly",
35
+ "dev": "tsdown --tsconfig tsconfig.build.json --watch",
34
36
  "lint:fix": "eslint --fix '**/*.{js,ts}'",
35
37
  "lint": "eslint '**/*.{js,ts}'"
36
38
  }
package/lib/index.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,cAAc,EACf,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAYlC;;;;;;;;GAQG;AACH,MAAM,OAAO,iBAAkB,SAAQ,cAAc;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