fullstacked 0.12.3-1439 → 0.12.3-1441

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.
@@ -10,7 +10,7 @@ var __export = (target, all) => {
10
10
  __defProp(target, name, { get: all[name], enumerable: true });
11
11
  };
12
12
 
13
- // node_modules/immutable/dist/immutable.es.js
13
+ // ../../node_modules/immutable/dist/immutable.es.js
14
14
  var immutable_es_exports = {};
15
15
  __export(immutable_es_exports, {
16
16
  Collection: () => Collection,
@@ -4828,7 +4828,7 @@ function defaultConverter(k, v) {
4828
4828
  var version2 = "5.1.4";
4829
4829
  var Iterable = Collection;
4830
4830
 
4831
- // node_modules/sass/sass.dart.js
4831
+ // ../../node_modules/sass/sass.dart.js
4832
4832
  if (!globalThis._cliPkgExports) {
4833
4833
  globalThis._cliPkgExports = [];
4834
4834
  }
@@ -127014,7 +127014,7 @@ If you really want to use the color value here, use '`,
127014
127014
  })();
127015
127015
  };
127016
127016
 
127017
- // node_modules/sass/sass.default.js
127017
+ // ../../node_modules/sass/sass.default.js
127018
127018
  var _cliPkgLibrary = globalThis._cliPkgExports.pop();
127019
127019
  if (globalThis._cliPkgExports.length === 0) delete globalThis._cliPkgExports;
127020
127020
  var _cliPkgExports2 = {};
package/index.js CHANGED
@@ -595,14 +595,16 @@ var compilerOptions = {
595
595
  var tsConfig = {
596
596
  compilerOptions: {
597
597
  ...compilerOptions,
598
- typeRoots: ["./.fullstacked_modules/@types", "./node_modules/@types"]
598
+ typeRoots: [
599
+ "./node_modules/fullstacked/fullstacked_modules/@types",
600
+ "./node_modules/@types"
601
+ ]
599
602
  }
600
603
  };
601
604
  var defaultGitignore = `node_modules
602
605
  .build
603
606
  data
604
- tsconfig.json
605
- .fullstacked_modules`;
607
+ tsconfig.json`;
606
608
  function setupDevFiles() {
607
609
  const tsConfigFile = path4.resolve(process.cwd(), "tsconfig.json");
608
610
  if (!fs4.existsSync(tsConfigFile)) {
@@ -612,6 +614,20 @@ function setupDevFiles() {
612
614
  if (!fs4.existsSync(gitignoreFile)) {
613
615
  fs4.writeFileSync(gitignoreFile, defaultGitignore);
614
616
  }
617
+ const packageJSONFilePath = path4.resolve(process.cwd(), "package.json");
618
+ if (fs4.existsSync(packageJSONFilePath)) {
619
+ const contents = fs4.readFileSync(packageJSONFilePath, {
620
+ encoding: "utf8"
621
+ });
622
+ try {
623
+ if (JSON.parse(contents).type === "commonjs") {
624
+ console.warn(
625
+ '[WARNING] Switch "type" to "module" in ./package.json to prevent any unexpected errors.'
626
+ );
627
+ }
628
+ } catch (e) {
629
+ }
630
+ }
615
631
  }
616
632
 
617
633
  // src/index.ts
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "fullstacked",
3
- "version": "0.12.3-1439",
3
+ "version": "0.12.3-1441",
4
4
  "scripts": {
5
5
  "build": "node build.js",
6
6
  "postbuild": "node build.js --binding",
7
7
  "start": "npm run build && node index.js --debug --lib ../../core/bin --root ~/FullStacked --config ~/.config/fullstacked --editor ../../out/build",
8
- "prepack": "node build.js"
8
+ "prepack": "node build.js --fullstacked_modules"
9
9
  },
10
10
  "bin": {
11
11
  "fullstacked": "index.js"