chore(release): 0.1.1 [skip ci]

## [0.1.1](https://git.lumeweb.com/LumeWeb/node-library-preset/compare/v0.1.0...v0.1.1) (2023-06-25)

### Bug Fixes

* add __dirname compatibility ([60f45cb](60f45cb8d5))
* add .releaserc.json to gitignore ([a892d35](a892d3557e))
* add [@ts-ignore](https://git.lumeweb.com/ts-ignore) to import.meta.url ([bdd2b66](bdd2b66725))
* add dom to ts compiler ([c3c172a](c3c172a5bc))
* add ES2021 to ts compiler ([c15b279](c15b279d63))
* add missing files property ([7a1e88e](7a1e88e8dc))
* add missing type and main ([9f0cdc2](9f0cdc22b6))
* don't let presetter try to parse the file ([7bb0961](7bb0961885))
* dont symlink ci file ([87afb2c](87afb2cc64))
* releaserc missing from templates ([0ba3e5e](0ba3e5e5f5))
* remove peer deps ([23ada98](23ada98337))
* switch to hybrid building ([7a58630](7a58630cda))
* syntax error ([7bba835](7bba8356e0))
This commit is contained in:
semantic-release-bot 2023-06-25 21:57:08 +00:00
parent 22d9487d19
commit 841e005d7c
6 changed files with 77 additions and 21 deletions

View File

@ -1,3 +1,22 @@
## [0.1.1](https://git.lumeweb.com/LumeWeb/node-library-preset/compare/v0.1.0...v0.1.1) (2023-06-25)
### Bug Fixes
* add __dirname compatibility ([60f45cb](https://git.lumeweb.com/LumeWeb/node-library-preset/commit/60f45cb8d544de3c77be90359bdce9ea98422040))
* add .releaserc.json to gitignore ([a892d35](https://git.lumeweb.com/LumeWeb/node-library-preset/commit/a892d3557ee419725cae6ce9f35293d98b6719e4))
* add [@ts-ignore](https://git.lumeweb.com/ts-ignore) to import.meta.url ([bdd2b66](https://git.lumeweb.com/LumeWeb/node-library-preset/commit/bdd2b667250024e4ddfe028726778dba4633312f))
* add dom to ts compiler ([c3c172a](https://git.lumeweb.com/LumeWeb/node-library-preset/commit/c3c172a5bcd878fde5b368f7aa4050cced7971af))
* add ES2021 to ts compiler ([c15b279](https://git.lumeweb.com/LumeWeb/node-library-preset/commit/c15b279d637ac5d76b8d42f1ec83403a9dcf721c))
* add missing files property ([7a1e88e](https://git.lumeweb.com/LumeWeb/node-library-preset/commit/7a1e88e8dc483e50a26eb5a85daf7e42413a0ba3))
* add missing type and main ([9f0cdc2](https://git.lumeweb.com/LumeWeb/node-library-preset/commit/9f0cdc22b635475aa025cdac656e0c31db370af3))
* don't let presetter try to parse the file ([7bb0961](https://git.lumeweb.com/LumeWeb/node-library-preset/commit/7bb09618851891d64b320c4651c545e097d8479d))
* dont symlink ci file ([87afb2c](https://git.lumeweb.com/LumeWeb/node-library-preset/commit/87afb2cc64344dba11c06c4c73ab245547a383a6))
* releaserc missing from templates ([0ba3e5e](https://git.lumeweb.com/LumeWeb/node-library-preset/commit/0ba3e5e5f5ef3fc790a75ff9f8fffb431042bcd1))
* remove peer deps ([23ada98](https://git.lumeweb.com/LumeWeb/node-library-preset/commit/23ada9833711bb1beeed435a0d7960b13da8ba92))
* switch to hybrid building ([7a58630](https://git.lumeweb.com/LumeWeb/node-library-preset/commit/7a58630cdaf69e9830a03ca7c2bc6fecd188a2f0))
* syntax error ([7bba835](https://git.lumeweb.com/LumeWeb/node-library-preset/commit/7bba8356e0ecaa426bb3afcc984607bf21a5474f))
## [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) ## [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)

View File

@ -1,20 +1,42 @@
"use strict"; "use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
return result;
};
Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "__esModule", { value: true });
exports.DEFAULT_VARIABLE = void 0; exports.DEFAULT_VARIABLE = void 0;
const node_path_1 = require("node:path"); const node_path_1 = require("node:path");
const node_url_1 = require("node:url"); exports.DEFAULT_VARIABLE = {
source: "src",
};
async function default_1() {
let DIR; let DIR;
if (typeof __dirname === "undefined") { if (typeof __dirname === "undefined") {
DIR = (0, node_path_1.dirname)((0, node_url_1.fileURLToPath)(import.meta.url)); DIR = (await Promise.resolve().then(() => __importStar(require("./path.js")))).default();
} }
else { else {
DIR = __dirname; DIR = __dirname;
} }
const TEMPLATES = (0, node_path_1.resolve)(DIR, "..", "templates"); const TEMPLATES = (0, node_path_1.resolve)(DIR, "..", "templates");
exports.DEFAULT_VARIABLE = {
source: "src",
};
async function default_1() {
return { return {
extends: ["presetter-preset-strict"], extends: ["presetter-preset-strict"],
template: { template: {
@ -37,4 +59,4 @@ async function default_1() {
}; };
} }
exports.default = default_1; exports.default = default_1;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUEseUNBQTZDO0FBQzdDLHVDQUF5QztBQUl6QyxJQUFJLEdBQVcsQ0FBQztBQUVoQixJQUFJLE9BQU8sU0FBUyxLQUFLLFdBQVcsRUFBRTtJQUVwQyxHQUFHLEdBQUcsSUFBQSxtQkFBTyxFQUFDLElBQUEsd0JBQ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ErQkMifQ==

View File

@ -1,17 +1,16 @@
import { dirname, resolve } from "node:path"; import { resolve } from "node:path";
import { fileURLToPath } from "node:url"; export const DEFAULT_VARIABLE = {
source: "src",
};
export default async function () {
let DIR; let DIR;
if (typeof `${process.platform === 'win32' ? '' : '/'}${/file:\/{2,3}(.+)\/[^/]/.exec(import.meta.url)[1]}` === "undefined") { if (typeof `${process.platform === 'win32' ? '' : '/'}${/file:\/{2,3}(.+)\/[^/]/.exec(import.meta.url)[1]}` === "undefined") {
DIR = dirname(fileURLToPath(import.meta.url)); DIR = (await import("./path.mjs")).default();
} }
else { else {
DIR = `${process.platform === 'win32' ? '' : '/'}${/file:\/{2,3}(.+)\/[^/]/.exec(import.meta.url)[1]}`; DIR = `${process.platform === 'win32' ? '' : '/'}${/file:\/{2,3}(.+)\/[^/]/.exec(import.meta.url)[1]}`;
} }
const TEMPLATES = resolve(DIR, "..", "templates"); const TEMPLATES = resolve(DIR, "..", "templates");
export const DEFAULT_VARIABLE = {
source: "src",
};
export default async function () {
return { return {
extends: ["presetter-preset-strict"], extends: ["presetter-preset-strict"],
template: { template: {
@ -33,4 +32,4 @@ export default async function () {
}, },
}; };
} }
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLE9BQU8sRUFBRSxPQUFPLEVBQUUsTUFBTSxXQUFXLENBQUM7QUFDN0MsT0FBTyxFQUFFLGFBQWEsRUFBRSxNQUFNLFVBQVUsQ0FBQztBQUl6QyxJQUFJLEdBQVcsQ0FBQztBQUVoQixJQUFJLE9BQU8sU0FBUyxLQUFLLFdBQVcsRUFBRTtJQUVwQyxHQUFHLEdBQUcsT0FBTyxDQUFDLGFBQWEsQ0FBQyxNQUFNLENBQUMsSUFBSSxDQUFDLEdBQU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0,0 +1 @@
export default function (): string;

9
lib/path.js Normal file
View File

@ -0,0 +1,9 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const node_path_1 = require("node:path");
const node_url_1 = require("node:url");
function default_1() {
return (0, node_path_1.dirname)((0, node_url_1.fileURLToPath)(import.meta.url));
}
exports.default = default_1;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGF0aC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3NyYy9wYXRoLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEseUNBQW9DO0FBQ3BDLHVDQUF5QztBQUV6QztJQUVFLE9BQU8sSUFBQSxtQkFBTyxFQUFDLElBQUEsd0JBQWEsRUFBQyxNQUFNLENBQUMsSUFBSSxDQUFDLEdBQUcsQ0FBQyxDQUFDLENBQUM7QUFDakQsQ0FBQztBQUhELDRCQUdDIn0=

6
lib/path.mjs Normal file
View File

@ -0,0 +1,6 @@
import { dirname } from "node:path";
import { fileURLToPath } from "node:url";
export default function () {
return dirname(fileURLToPath(import.meta.url));
}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGF0aC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3NyYy9wYXRoLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxPQUFPLEVBQUUsTUFBTSxXQUFXLENBQUM7QUFDcEMsT0FBTyxFQUFFLGFBQWEsRUFBRSxNQUFNLFVBQVUsQ0FBQztBQUV6QyxNQUFNLENBQUMsT0FBTztJQUVaLE9BQU8sT0FBTyxDQUFDLGFBQWEsQ0FBQyxNQUFNLENBQUMsSUFBSSxDQUFDLEdBQUcsQ0FBQyxDQUFDLENBQUM7QUFDakQsQ0FBQyJ9