Merge remote-tracking branch 'origin/develop' into develop
This commit is contained in:
commit
4761259c9c
|
@ -1,3 +1,11 @@
|
|||
## [0.1.1-develop.12](https://git.lumeweb.com/LumeWeb/node-library-preset/compare/v0.1.1-develop.11...v0.1.1-develop.12) (2023-06-25)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* add __dirname compatibility ([60f45cb](https://git.lumeweb.com/LumeWeb/node-library-preset/commit/60f45cb8d544de3c77be90359bdce9ea98422040))
|
||||
* switch to hybrid building ([7a58630](https://git.lumeweb.com/LumeWeb/node-library-preset/commit/7a58630cdaf69e9830a03ca7c2bc6fecd188a2f0))
|
||||
|
||||
## [0.1.1-develop.11](https://git.lumeweb.com/LumeWeb/node-library-preset/compare/v0.1.1-develop.10...v0.1.1-develop.11) (2023-06-25)
|
||||
|
||||
|
||||
|
|
30
lib/index.js
30
lib/index.js
|
@ -1,19 +1,28 @@
|
|||
import { dirname, resolve } from "node:path";
|
||||
import { fileURLToPath } from "node:url";
|
||||
const DIR = dirname(fileURLToPath(import.meta.url));
|
||||
const TEMPLATES = resolve(DIR, "..", "templates");
|
||||
export const DEFAULT_VARIABLE = {
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.DEFAULT_VARIABLE = void 0;
|
||||
const node_path_1 = require("node:path");
|
||||
const node_url_1 = require("node:url");
|
||||
let DIR;
|
||||
if (typeof __dirname === "undefined") {
|
||||
DIR = (0, node_path_1.dirname)((0, node_url_1.fileURLToPath)(import.meta.url));
|
||||
}
|
||||
else {
|
||||
DIR = __dirname;
|
||||
}
|
||||
const TEMPLATES = (0, node_path_1.resolve)(DIR, "..", "templates");
|
||||
exports.DEFAULT_VARIABLE = {
|
||||
source: "src",
|
||||
};
|
||||
export default async function () {
|
||||
async function default_1() {
|
||||
return {
|
||||
extends: ["presetter-preset-strict"],
|
||||
template: {
|
||||
".github/workflows/ci.yml": resolve(TEMPLATES, "ci.yml.raw"),
|
||||
".releaserc.json": resolve(TEMPLATES, ".releaserc.json"),
|
||||
".github/workflows/ci.yml": (0, node_path_1.resolve)(TEMPLATES, "ci.yml.raw"),
|
||||
".releaserc.json": (0, node_path_1.resolve)(TEMPLATES, ".releaserc.json"),
|
||||
},
|
||||
noSymlinks: [".github/workflows/ci.yml"],
|
||||
variable: DEFAULT_VARIABLE,
|
||||
variable: exports.DEFAULT_VARIABLE,
|
||||
supplementaryConfig: {
|
||||
prettier: {
|
||||
singleQuote: false,
|
||||
|
@ -27,4 +36,5 @@ export default async function () {
|
|||
},
|
||||
};
|
||||
}
|
||||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLE9BQU8sRUFBRSxPQUFPLEVBQUUsTUFBTSxXQUFXLENBQUM7QUFDN0MsT0FBTyxFQUFFLGFBQWEsRUFBRSxNQUFNLFVBQVUsQ0FBQztBQUl6QyxNQUFNLEdBQUcsR0FBRyxPQUFPLENBQUMsYUFBYSxDQUFDLE1BQU0sQ0FBQyxJQUFJLENBQUMsR0FBRyxDQUFDLENBQUMsQ0FBQztBQUdwRCxNQUFNLFNBQVMsR0FBRyxPQUFPLENBQUMsR0FBRyxFQUFFLElBQUksRUFBRSxXQUFXLENBQUMsQ0FBQztBQUNsRCxNQUFNLENBQUMsTUFBTSxnQkFBZ0IsR0FBRztJQUM5QixNQUFNLEVBQUUsS0FBSztDQUNkLENBQUM7QUFNRixNQUFNLENBQUMsT0FBTyxDQUFDLEtBQUs7SUFDbEIsT0FBTztRQUNMLE9BQU8sRUFBRSxDQUFDLHlCQUF5QixDQUFDO1FBQ3BDLFFBQVEsRUFBRTtZQUNSLDBCQUEwQixFQUFFLE9BQU8sQ0FBQyxTQUFTLEVBQUUsWUFBWSxDQUFDO1lBQzVELGlCQUF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s7SUFDbEIsT0FBTztRQUNMLE9BQU8sRUFBRSxDQUFDLHlCQUF5QixDQUFDO1FBQ3BDLFFBQVEsRUFBRTtZQUNSLDBCQUEwQixFQUFFLElBQUEsbUJBQU8sRUFBQyxTQUFTLEVBQUUsWUFBWSxDQUFDO1lBQzVELGlCQUFpQixFQUFFLElBQUEsbUJBQU8sRUFBQyxTQUFTLEVBQUUsaUJBQWlCLENBQUM7U0FDekQ7UUFDRCxVQUFVLEVBQUUsQ0FBQywwQkFBMEIsQ0FBQztRQUN4QyxRQUFRLEVBQUUsd0JBQWdCO1FBQzFCLG1CQUFtQixFQUFFO1lBQ25CLFFBQVEsRUFBRTtnQkFDUixXQUFXLEVBQUUsS0FBSzthQUNuQjtZQUNELFNBQVMsRUFBRSxDQUFDLGlCQUFpQixDQUFDO1lBQzlCLFFBQVEsRUFBRTtnQkFDUixlQUFlLEVBQUU7b0JBQ2YsR0FBRyxFQUFFLENBQUMsUUFBUSxFQUFFLEtBQUssQ0FBQztpQkFDdkI7YUFDRjtTQUNGO0tBQ0YsQ0FBQztBQUNKLENBQUM7QUFyQkQsNEJBcUJDIn0=
|
|
@ -0,0 +1,36 @@
|
|||
import { dirname, resolve } from "node:path";
|
||||
import { fileURLToPath } from "node:url";
|
||||
let DIR;
|
||||
if (typeof `${process.platform === 'win32' ? '' : '/'}${/file:\/{2,3}(.+)\/[^/]/.exec(import.meta.url)[1]}` === "undefined") {
|
||||
DIR = dirname(fileURLToPath(import.meta.url));
|
||||
}
|
||||
else {
|
||||
DIR = `${process.platform === 'win32' ? '' : '/'}${/file:\/{2,3}(.+)\/[^/]/.exec(import.meta.url)[1]}`;
|
||||
}
|
||||
const TEMPLATES = resolve(DIR, "..", "templates");
|
||||
export const DEFAULT_VARIABLE = {
|
||||
source: "src",
|
||||
};
|
||||
export default async function () {
|
||||
return {
|
||||
extends: ["presetter-preset-strict"],
|
||||
template: {
|
||||
".github/workflows/ci.yml": resolve(TEMPLATES, "ci.yml.raw"),
|
||||
".releaserc.json": resolve(TEMPLATES, ".releaserc.json"),
|
||||
},
|
||||
noSymlinks: [".github/workflows/ci.yml"],
|
||||
variable: DEFAULT_VARIABLE,
|
||||
supplementaryConfig: {
|
||||
prettier: {
|
||||
singleQuote: false,
|
||||
},
|
||||
gitignore: [".releaserc.json"],
|
||||
tsconfig: {
|
||||
compilerOptions: {
|
||||
lib: ["ES2021", "dom"],
|
||||
},
|
||||
},
|
||||
},
|
||||
};
|
||||
}
|
||||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLE9BQU8sRUFBRSxPQUFPLEVBQUUsTUFBTSxXQUFXLENBQUM7QUFDN0MsT0FBTyxFQUFFLGFBQWEsRUFBRSxNQUFNLFVBQVUsQ0FBQztBQUl6QyxJQUFJLEdBQVcsQ0FBQztBQUVoQixJQUFJLE9BQU8sU0FBUyxLQUFLLFdBQVcsRUFBRTtJQUVwQyxHQUFHLEdBQUcsT0FBTyxDQUFDLGFBQWEsQ0FBQyxNQUFNLENBQUMsSUFBSSxDQUFDLEdBQUcsQ0FBQyxDQUFDLENBQUM7Q0FDL0M7S0FBTTtJQUNMLEdBQUcsR0FBRyxTQUFTLENBQUM7Q0FDakI7QUFHRCxNQUFNLFNBQVMsR0FBRyxPQUFPLENBQUMsR0FBRyxFQUFFLElBQUksRUFBRSxXQUFXLENBQUMsQ0FBQztBQUNsRCxNQUFNLENBQUMsTUFBTSxnQkFBZ0IsR0FBRztJQUM5QixNQUFNLEVBQUUsS0FBSztDQUNkLENBQUM7QUFNRixNQUFNLENBQUMsT0FBTyxDQUFDLEtBQUs7SUFDbEIsT0FBTztRQUNMLE9BQU8sRUFBRSxDQUFDLHlCQUF5QixDQUFDO1FBQ3BDLFFBQVEsRUFBRT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