pepr 0.1.42 → 0.1.43
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/dist/package.json
CHANGED
|
@@ -14,7 +14,7 @@ const data_json_1 = __importDefault(require("./templates/data.json"));
|
|
|
14
14
|
const pepr_code_snippets_json_1 = __importDefault(require("./templates/pepr.code-snippets.json"));
|
|
15
15
|
const prettierrc_json_1 = __importDefault(require("./templates/prettierrc.json"));
|
|
16
16
|
const samples_json_1 = __importDefault(require("./templates/samples.json"));
|
|
17
|
-
const
|
|
17
|
+
const tsconfig_module_json_1 = __importDefault(require("./templates/tsconfig.module.json"));
|
|
18
18
|
const utils_1 = require("./utils");
|
|
19
19
|
function genPkgJSON(opts) {
|
|
20
20
|
// Generate a random UUID for the module based on the module name
|
|
@@ -86,7 +86,7 @@ exports.snippet = {
|
|
|
86
86
|
};
|
|
87
87
|
exports.tsConfig = {
|
|
88
88
|
path: "tsconfig.json",
|
|
89
|
-
data:
|
|
89
|
+
data: tsconfig_module_json_1.default,
|
|
90
90
|
};
|
|
91
91
|
exports.prettierRC = {
|
|
92
92
|
path: ".prettierrc",
|
package/package.json
CHANGED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
// This is a helper script to collect the contents of the template files before building the CLI
|
|
2
|
-
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
const fs = require("fs");
|
|
5
|
-
const path = require("path");
|
|
6
|
-
|
|
7
|
-
const baseDir = path.join(__dirname, "..", "src", "cli", "init", "templates");
|
|
8
|
-
|
|
9
|
-
// Read the text file
|
|
10
|
-
const gitignore = fs.readFileSync(path.join(baseDir, "gitignore"), "utf8");
|
|
11
|
-
const readme = fs.readFileSync(path.join(baseDir, "README.md"), "utf8");
|
|
12
|
-
const peprTS = fs.readFileSync(path.join(baseDir, "pepr.ts"), "utf8");
|
|
13
|
-
const helloPeprTS = fs.readFileSync(path.join(baseDir, "hello-pepr.ts"), "utf8");
|
|
14
|
-
|
|
15
|
-
fs.writeFileSync(
|
|
16
|
-
path.join(baseDir, "data.json"),
|
|
17
|
-
JSON.stringify({
|
|
18
|
-
gitignore,
|
|
19
|
-
readme,
|
|
20
|
-
peprTS,
|
|
21
|
-
helloPeprTS,
|
|
22
|
-
})
|
|
23
|
-
);
|
package/tsconfig.build.json
DELETED