papagaio 0.1.7 → 0.1.8

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.
Files changed (2) hide show
  1. package/cli.js +4 -1
  2. package/package.json +1 -1
package/cli.js CHANGED
@@ -1,7 +1,10 @@
1
1
  #!/usr/bin/env node
2
2
  import { Papagaio } from "./papagaio.js";
3
3
  import fs from "fs";
4
- import pkg from "./package.json" assert { type: "json" };
4
+ import { createRequire } from "module";
5
+ const require = createRequire(import.meta.url);
6
+ const pkg = require("./package.json");
7
+
5
8
 
6
9
  // Help & Version
7
10
  const args = process.argv.slice(2);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "papagaio",
3
- "version": "0.1.7",
3
+ "version": "0.1.8",
4
4
  "description": "easy yet powerful preprocessor",
5
5
  "main": "papagaio.js",
6
6
  "type": "module",